Re: magic quotes

From: Date: Tue, 17 Jul 2007 12:16:18 +0000
Subject: Re: magic quotes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-258991@lists.php.net to get a copy of this message
Phil Princely wrote:
What do people on this list usually do with this kind of problem. To me, the .htaccess seems the easiest solution, since I don't have to change any scripts.
I would certainly turn it off in php.ini or apache config files if possible (the .htaccess line should be "php_flag magic_quotes_gpc off" by the way). However, if you end up doing it at runtime, then it's best to use Environment/magic_quotes_gpc_off.php in PHP_Compat. magic_quotes_gpc has been very inconsistent between PHP versions so a generic stripslashes_array() function is unwise. Arpad

« previous php.general (#258991) next »