SUBSCRIBE VIA RSS


Subscribe to our feed

Symfony Experts

Symfony Experts
If you have an urgent question for a symfony-related issue, this is the place to ask.

Topics

Stack Overflow


The old fashioned way

RECENT TUNES

June 10, 2007 – 11:53pm Turn off php magic_quotes_gpc within .htaccess or php.ini

A lot of shared hosts will have magic quotes turned on by default. This can create some extra overhead depending on your application. Symfony apps prefer to have this turned off. Here’s how you can do it using either an .htaccess or php.ini file in your web root directory.

#.htaccess
php_flag magic_quotes_gpc off
 
# php.ini
magic_quotes_gpc=off
</code>
Posted by in  Web Development   |  

2 Responses to Turn off php magic_quotes_gpc within .htaccess or php.ini

  1. Thankfully that function is completely removed in PHP v6

  2. Pingback: How to fix double apostrophe in Wordpress