Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jul 092011
 

Turn off magic_quotes_gpc in PHP

Answer:

magic_quotes_gpc is a legacy PHP function that no longer be supported in PHP 6.0. So you should disable them to make sure your application not break in the future version of PHP.

To disable it, edit the php.ini

vi /etc/php.ini

Locate and set

magic_quotes_gpc = off;

Remember to restart web server such as Apache if needed.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>