Tweaking Apache
Did you know you could use Apache’s httpd.conf to manipulate PHP’s magic quotes ? The following code will set magic_quotes_gpc to “off” for a specific directory, allowing you to bypass changing your php.ini which would affect all the virtual hosts.

December 16th, 2001 at 11:49 am
Of course, for that matter, you could use the built in functions in PHP: get_magic_quotes_runtime(), set_magic_quotes_runtime().
February 1st, 2002 at 8:19 pm
Hi, I\’ve tried with an .htaccess file like this:
php_flag magic_quotes_gpc off
or like this:
php_value magic_quotes_gpc off
or like this:
php_flag magic_quotes_gpc 0
etc. etc. BUT it doesn\’t work!!!! Can you help me (gabser@tiscalinet.it)? Thanks a lot
February 9th, 2002 at 10:05 am
I think the problem is here, in the directory section:
# AllowOverride None
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
try to comment \’AllowOverride None\’ and change it by \’AllowOverride All\’. Finally, be sure the last two lines appear within the directory directive of htaccess.