Re: [PHP] set_magic_quotes_runtime()

2001-06-24 Thread Aral Balkan
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

[PHP] set_magic_quotes_runtime()

2001-06-24 Thread Murray Shields
Having trouble with the command in the subject... I have a web server with PHP4 and MySQL with magic_quotes turned on in the default configuration... But when I set_magic_quotes_runtime(0) within a site where I need it turned off it works, but it does not work! For example: echo "[".get_magic_q