Sunday , 24 August 2014
Home » .htaccess » [.htaccess] How to turn off magic quotes
[.htaccess] How to turn off magic quotes

[.htaccess] How to turn off magic quotes

Hello Friends,

Are you looking for a solution to turn off the magic quotes using .htaccess ? If you work on local than you can turn off magic quotes in php.ini file but when you works with server, you may not have access of server’s php.ini file. There is another way to do the same task. You can turn off the magic quotes using .htaccess. Here is the code you need to put in .htaccess at very top of the page.

php_flag magic_quotes_gpc Off

About Rakshit Patel

I am PHP Freelancer, Rakshit Patel AKA WordPress Freelancer working as PHP Programmer India. I am here to share all my developing knowledge, quick coding techniques, quick solutions to save your time and help you guys for any issue or bug fixing. If you have any PHP, WordPress, Magento related work, please contact me. I am interested for the work.

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>