note 23004 added to function.ini-set

From: Date: Sat, 06 Jul 2002 13:21:08 +0000
Subject: note 23004 added to function.ini-set
Groups: php.notes 
Request: Send a blank email to php-notes+get-32678@lists.php.net to get a copy of this message
If you wan't to turn on the magic_quotes_gpc, but can't use a .htaccess (because AllowOverride is set off) you can try the ini_set("magic_quotes_gpc", "1"). I tried it on PHP4.1.2 but it didn't work, so you can try this workaround: foreach($_POST as $key => $val) { if(!is_array($key)) { ${$key} = addslashes($val); } } Also thanks to ACM for the support ;) -- http://www.php.net/manual/en/function.ini-set.php http://master.php.net/manage/user-notes.php?action=edit+23004 http://master.php.net/manage/user-notes.php?action=delete+23004 http://master.php.net/manage/user-notes.php?action=reject+23004

« previous php.notes (#32678) next »