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 :)
______________________________
([EMAIL PROTECTED])
New Media Producer, Kismia, Inc.
([EMAIL PROTECTED])
Adj. Prof., American University
������������������������������
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
- [PHP] Help with simple regular expression Aral Balkan
- Re: [PHP] Help with simple regular expression Aral Balkan
- [PHP] set_magic_quotes_runtime() Murray Shields
- RE: [PHP] Help with simple regular express... Aral Balkan
- RE: [PHP] Help with simple regular expression Kristian Duske
- Re: [PHP] Help with simple regular expression Aral Balkan
- Re: [PHP] Help with simple regular expression Christian Reiniger
- Re: [PHP] Help with simple regular expression mailing_list
- Re: [PHP] Help with simple regular express... Aral Balkan
- RE: [PHP] Help with simple regular expression scott [gts]
- RE: [PHP] Help with simple regular expression Mark Maggelet
- Re: [PHP] Help with simple regular expression CC Zona

