Fork me on GitHub Open Source
Commentics > Support > Knowledgebase

Search help:

How do I disable Magic Quotes?


If the Installer has told you that Magic Quotes is enabled on your server, or you are finding out the hard way by seeing extra slashes (\) on your page, you will want to disable this "feature".

If you have access to your php.ini file, make sure that these three values are set to off:

magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off

Alternatively you can try adding this to your site's .htaccess file:

php_flag magic_quotes_gpc Off

To verify whether Magic Quotes is enabled or not, in the admin panel go to Reports -> PHP Info and search for "magic_quotes_gpc", "magic_quotes_runtime" and "magic_quotes_sybase", and check that their values are Off.

Was this article helpful? yes / no
Article details
Article ID: 29
Category: Server
Date added: 2011-08-25 21:37:10
Views: 5099
Rating (Votes): Article rated 3.8/5.0 (41)

« Go back

Powered by Help Desk Software HESK, brought to you by SysAid