Richard, It's the same record every time that shows the different behavior. The code is extremely straightforward, just retrieve the record and display it. And, I've got other scripts on the same host that also display this behavior intermittantly. MagicQuotes is turned on. And, it typically DOES remove the escaped out characters automatically. So, I guess I need to read up more on MagicQuotes to see if there's any known information on how it could fail periodically (perhaps under heavy load conditions or incombination with something else?). I've posted a note on the ISP's discussion forum as well to see if anyone else hosting their content there have seen similar behavior. Roy At 10:07 PM 1/15/01 -0600, you wrote: >Unless I'm even more confused than usual about something I've long believed >to be true... > >MagicQuotes does not ever strip slashes. > >MagicQuotes does an addslashes before the data gets into the database. > >Are you viewing the same record all the time, or is it possible that one of >your records has an extra \ in it? > > >----- Original Message ----- >From: Roy <[EMAIL PROTECTED]> >Newsgroups: php.general >Sent: Monday, January 15, 2001 5:48 PM >Subject: [PHP] Magic Quotes - Problems with Inconsistent Behavior removing >Slashes > > >> I'm seeing strange behavior with Magic Quotes in PHP on my ISP hosted >> accounts. Basically, it's not consistently removing the escaped >backslashes >> before displaying. >> >> For instance, take the following piece database text (stored in, say, a >> character field).... >> >> It's fun to be a penguin. >> >> If I do a simple retrieve and echo on a webpage, I will get the following >> 80% of the time.. >> >> It's fun to be a penguin. >> >> But, the other 20% of the time I get >> >> It\'s fun to be a penguin. >> >> There's something inconsistent about the way MagicQuotes are removed by >the >> system...it's as if the system gets "busy" or the cache gets flushed >before >> PHP gets the opportunity to unescape the single quotes. >> >> Is anyone else seeing this behavior and has any suggestions on how to make >> it work more consistent? Yes, I've been including "stripslashes" to try to >> make SURE that these slashes get removed, but that doesn't work all the >> time EITHER. >> >> Roy >> >> >> -- >> 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 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 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]