note 29192 added to function.get-magic-quotes-gpc
| From: | el at example dot com | Date: | Wed, 05 Feb 2003 16:41:44 +0000 |
| Subject: | note 29192 added to function.get-magic-quotes-gpc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-43469@lists.php.net to get a copy of this message | ||
I think, the previous example need some corrections:
If magic_quotes_runtime is enabled, most functions that return data from any sort of external
source including databases and text files will have quotes escaped with a backslash. If
magic_quotes_sybase is also on, a single-quote is escaped with a single-quote instead of a
backslash.
(from http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-runtime)
So if both flags magic_quotes_runtime and magic_quotes_sybase
this code won't function properly.
--
http://www.php.net/manual/en/function.get-magic-quotes-gpc.php
http://master.php.net/manage/user-notes.php?action=edit+29192
http://master.php.net/manage/user-notes.php?action=delete+29192
http://master.php.net/manage/user-notes.php?action=reject+29192