Knowledgebase
Knowledgebase: PHP, ASP & CGI/Perl
How can I turn on Magic Quotes?
Posted by Diego Cousinet on 28 February 2011 08:33 AM

By default, magic quotes are turned off to support large number of legacy PHP scripts we have.


To enable them for a site, you need to create a .htaccess file in the site's folder containing the line:

 

php_flag magic_quotes_gpc on

 

(39 vote(s))
Helpful
Not helpful

Comments (0)