#.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.
five comments...
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:
Thank you! You just helped me out of a huge hole! : )
After I put this code in. Htaccess site is not working and shows error 500. What could be the problem?
You would need to look at the Apache
error.log
to see the nature of the error.Turn off Magic Quotes in PHP via .htaccess
This code is work fine
many many thanks boss…