February 15th, 2007
#.htaccess SETTINGS TO TURN OFF # STUPID MAGIC QUOTES IN PHP # I HATE MAGIC QUOTES PROBLEMS php_flag magic_quotes_gpc off
UPDATE: See Magic Quotes, and note:
This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.
Comments Open; Trackbacks Open:
http://artlung.com/blog/2007/02/15/turn-off-magic-quotes-in-php-via-htaccess/trackback/
http://artlung.com/blog/2007/02/15/turn-off-magic-quotes-in-php-via-htaccess/trackback/
bobou
permalink
April 23, 2008 12:22am
In ovh, You can do the following instead of php_flag:
Below is the forum in french:
Modification des valeurs grâce à l’instruction SetEnv
Il est désormais possible de modifier les valeurs de register_globals, magic_quotes, Zend Optimizer ainsi que choisir entre php4 et php5 grâce à l’instruction SetEnv via un fichier .htaccess que vous pouvez créer dans un répertoire donné de votre site via le bloc note sous windows ou tout autre éditeur de texte.
Exemple:
Tim
permalink
October 17, 2009 12:10am
Thank you! You just helped me out of a huge hole! : )
Prodajem kupujem
permalink
November 21, 2012 4:10pm
After I put this code in. Htaccess site is not working and shows error 500. What could be the problem?
Joe Crawford
permalink
November 21, 2012 5:05pm
You would need to look at the Apache
error.logto see the nature of the error.