#.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.
bobou
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
October 17, 2009 12:10am
Thank you! You just helped me out of a huge hole! : )
Prodajem kupujem
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
November 21, 2012 5:05pm
You would need to look at the Apache
error.log
to see the nature of the error.debnath
July 9, 2013 10:42pm
Turn off Magic Quotes in PHP via .htaccess
This code is work fine
many many thanks boss…