Yes, I got into trouble with magic quotes recently too. Well I know that you can do the same thing with mysql_escape_string if you are using MySQL. But if you are very peculiar about doing it in DW and so not want the script to handle it, then I guess you have wait till some DW guru in this mailing list. Good luck. Prathap ---------- Original Message ----------- From: Ryan A <genphp@xxxxxxxxx> To: Prathaban Mookiah <prathap@xxxxxxxxxxxx>, php php <php-general@xxxxxxxxxx net> Sent: Wed, 28 Jun 2006 03:10:27 -0700 (PDT) Subject: Re: Single quotes verses double quotes default behavior with DW --------> (Pretty much 0T ) > --- Prathaban Mookiah <prathap@xxxxxxxxxxxx> wrote: > > > Are you trying to use PHP to write the HTML onto a > > database. If this is the > > case you can simply use addslashes(). This way you > > can still preserve the > > double quotes, but write into the database without > > any problems. > > > > Either way some processing will be involved at some > > point. So I guess there is > > not much you can do about it. > > > > Prathap > > > > > > > > Hello, > Yes, I want to write the HTML to the DB, and I know > other than str_replace I have the option of > addslashes, but with addslashes I have to take into > account magic_quotes being on/off...and since this is > going to be used on a few servers it just complicates > matters a bit more, I am trying to take the guesswork > and extra coding out of the scripts and solve the > problem before it comes to the scripts...by changeing > the default in DW. > > Thanks! > Ryan > > ------ > - The faulty interface lies between the chair and the keyboard. > - Creativity is great, but plagiarism is faster! > - Smile, everyone loves a moron. :-) > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php ------- End of Original Message ------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php