Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


boostr.in questions - Question:how to Enable SQL Safe Mode


Edit /etc/php.d/security.ini and set the following directive:

sql.safe_mode=On
 

If turned On, mysql_connect() and mysql_pconnect() ignore any arguments passed to them. Please note that you may have to make some changes to your code. Third party and open source application such as WordPress, and others may not work at all when sql.safe_mode enabled. I also recommend that you turn off magic_quotes_gpc for all php 5.3.x installations as the filtering by it is ineffective and not very robust. mysql_escape_string() and custom filtering functions serve a better purpose (hat tip to Eric Hansen):

magic_quotes_gpc=Off

asked Sep 13, 2013 in PHP by rajesh
edited Sep 12, 2013
0 votes
13 views



Related Hot Questions



Government Jobs Opening


...