Thursday, June 6, 2019

ubuntu - PHP ignoring config file

Answer


Answer




I'm trying to turn off magic_quotes_gpc in PHP. I'm running PHP with Apache and Ubuntu.




I have in my config file (/etc/php5/apache2/php.ini):



magic_quotes_gpc Off 


Where I create a page with phpinfo() it shows magic_quotes_gpc as on. I've also looked in Additional .ini files parsed and there is no setting for it.



Why is PHP ignoring this?


Answer



try to add/edit in php.ini




magic_quotes_gpc = Off 


after adding restart your apache services for taking effect this



You can turn them off using .htaccess with:



php_flag magic_quotes_gpc Off



and also using php if writable php.ini



ini_set('magic_quotes_gpc' , 0 );

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...