I tried to turn off magic quotes in these places:
/etc/php5/apache2/php.ini
/etc/php5/cli/php.ini
I'm sure all of them is "Off".
but it's still ON in phpinfo()! Here is my phpinfo()
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
The only way it works is add php_flag magic_quotes_gpc Off
to .htaccess.
Now I want to disable it in php.ini
. How can???
Edit:
phpinfo() shows:
Configuration File (php.ini) Path /etc/php5/apache2
Loaded Configuration File /php.ini
so I opened /etc/php5/apache2/php.ini. These are the magic-quotes-related things:
magic_quotes_gpc = Off
; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
; http://php.net/magic-quotes-runtime
magic_quotes_runtime = Off
; Use Sybase-style magic quotes (escape ' with '' instead of \').
; http://php.net/magic-quotes-sybase
magic_quotes_sybase = Off
godaddy
? – Yogesh Sutharsudo service php5-fpm restart
– max_