Re: Auto escaping an apostrophy...
| From: | Todd Cary | Date: | Mon, 20 Sep 2004 15:23:24 +0000 |
| Subject: | Re: Auto escaping an apostrophy... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197298@lists.php.net to get a copy of this message | ||
Many thanks to all.....
Todd
John Legg wrote:
Todd, From the PHP manual: magic_quotes_gpc boolean Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes are on, all ' (single-quote), " (double quote), \ (backslash) and NUL's are escaped with a backslash automatically. Note: If the magic_quotes_sybase directive is also ON it will completely override magic_quotes_gpc. Having both directives enabled means only single quotes are escaped as ''. Double quotes, backslashes and NUL's will remain untouched and unescaped. See also get_magic_quotes_gpc() Rgds John --- I have noticed that an apostrophy is automatically escaped with a "\", or at least appears to be if the surfer enters an apostrophy in a text field. Has this always been the case or is there a setting in the php.ini file that contols this? Todd