Disabling Magic Quotes GPC Using An .htaccess File

A note from A Beautiful Site’s founder: We developed Surreal to be easy for you and your clients. If you’re a web designer, you should take a look at the simple, hosted CMS that’s changing the way content is managed. Surreal integrates in moments and is trusted by over 18,000 websites. Try it out for free and let us know what you think! Visit Website »

Providing your server is configured to allow .htaccess files, adding the following line will effectively turn off Magic Quotes:

php_flag magic_quotes_gpc off
If you enjoyed this article, please share it with a friend!

4 Responses to Disabling Magic Quotes GPC Using An .htaccess File

  1. Nelson says:

    Thank you very much! :D

  2. senol says:

    good job

  3. Ong Meng Foong says:

    nice!! simple & neat! thank you sooooo much!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

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>