TURN NO/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_flag magic_quotes_gpc on

# php.ini
magic_quotes_gpc=off
magic_quotes_gpc=on

0 comments:

Post a Comment