note 18235 added to function.set-magic-quotes-runtime

From: Date: Tue, 15 Jan 2002 14:50:44 +0000
Subject: note 18235 added to function.set-magic-quotes-runtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-24843@lists.php.net to get a copy of this message
set_magic_quotes_runtime (0); Doesn't work for me, so I'm guessing that this isn't guaranteed to work on some configurations. There are workarounds for this: (You can add GET to this too) // Remove automatic quotes added to POST/COOKIE by PHP if (get_magic_quotes_gpc ()) { for (reset ($HTTP_POST_VARS); list ($k, $v) = each ($HTTP_POST_VARS); ) $$k = stripslashes ($v); for (reset ($HTTP_COOKIE_VARS); list ($k, $v) = each ($HTTP_COOKIE_VARS); ) $$k = stripslashes ($v); } -- http://www.php.net/manual/en/function.set-magic-quotes-runtime.php http://master.php.net/manage/user-notes.php?action=edit+18235 http://master.php.net/manage/user-notes.php?action=delete+18235 http://master.php.net/manage/user-notes.php?action=reject+18235

« previous php.notes (#24843) next »