RE: [PHP] Why does this work on one server, but not another?

From: Date: Thu, 23 Mar 2006 19:23:45 +0000
Subject: RE: [PHP] Why does this work on one server, but not another?
Groups: php.general 
Request: Send a blank email to php-general+get-232469@lists.php.net to get a copy of this message
Hi gang: Another update. The detect magic_quotes_gpc ON and then either do, or don't do, addslashes() thing (see below) provided kindly by Dave doesn't work. function myslashes($data) { return (get_magic_quotes_gpc() == 1) ? $data : addslashes($data); } On both of the servers, the magic_gpc thing is ON. I found on the server with magic_quotes_runtime ON, it didn't make any difference to addslashes or not (I suspect there is something more going on there, but don't need to go into this right now), it worked in both cases. However, on the problematic server that has magic_quotes_runtime OFF -- it didn't make any difference either to addslashes or not because it failed in both cases. I'm open to more suggestions. tedd -- -------------------------------------------------------------------------------- http://sperling.com

« previous php.general (#232469) next »