[PHP] clarification on magic quotes

2002-04-04 Thread Erik Price
The following quote is from http://www.php.net/manual/en/configuration.php#ini.magic-quotes-gpc 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

RE: [PHP] clarification on magic quotes

2002-04-04 Thread Johnson, Kirk
] Subject: [PHP] clarification on magic quotes The following quote is from http://www.php.net/manual/en/configuration.php#ini.magic-quotes-gpc magic_quotes_gpc boolean Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes are on, all ' (single-quote

Re: [PHP] clarification on magic quotes

2002-04-04 Thread Miguel Cruz
On Thu, 4 Apr 2002, Erik Price wrote: I was hoping someone could just clarify something for me -- exactly WHAT is a Get/Post/Cookie operation in this case -- is it just during the uploading of Get/Post/Cookie data from the user agent, or is it also when I am taking a $_POST variable and

Re: [PHP] clarification on magic quotes

2002-04-04 Thread Erik Price
On Thursday, April 4, 2002, at 02:09 PM, Miguel Cruz wrote: I find it much simpler to turn it off, and then just addslashes all strings before they go into the database. I suppose you're right -- the only time you really need to add the slashes is right before the data gets inserted. I