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

TWITTER

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 in  Web Development   |     |  delicious  Digg

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

  1. Thankfully that function is completely removed in PHP v6

    By Freehill Media Website Design on Apr 21, 2009

1 Trackback(s)

  1. Apr 25, 2009: How to fix double apostrophe in Wordpress

Post a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word