Re: set_magic_quotes_runtime()
| From: | Aral Balkan | Date: | Mon, 25 Jun 2001 01:34:38 +0000 |
| Subject: | Re: set_magic_quotes_runtime() | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55071@lists.php.net to get a copy of this message | ||
Despite what it says (and as far as I know) you *can't* change the state of
magic quotes from within a script. You can, however use a function like
this:
function myAddSlashes($st) {
if (get_magic_quotes_gpc()==1) {
return $st;
} else {
return AddSlashes($st);
}
}
Hope this helps,
Aral :)
______________________________
(aral@kismia.com)
New Media Producer, Kismia, Inc.
(aral@american.edu)
Adj. Prof., American University
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯