Friday, December 28, 2018

php - Magic quotes isn't off (Strange problam!)

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

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...