[.htaccess] How to turn off magic quotes

htaccess-tricks-tips

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

Leave a Reply

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

Sponsors

Sponsors

Recommended

DHgate Computers
DHgate.com - Computers, Cell Phones & more
  • We find everbuying built in php and use css to control the style.

About Author

PHP Freelancer

PHP Freelancer I am PHP Freelancer, Rakshit Patel working as PHP Programmer India. I am here to share all my developing knowledge with you people. For Hire PHP Developer India, contact me.
Follow on twitter: @raxit4u2

Get Free Programming Tutorials:

Become a Fan

Popular Topics

Recent Posts

Most Popular

Recent Comments

Get a Free Quote
$
$
$
Security Question: 3 + 8 = ?
$