try to use this few lines of code. function stripMagicQuotes(&$var) { if (get_magic_quotes_gpc()) { $var = stripslashes($var); } return $var; } this way you don't really have to worry if magic quotes is on or off. ** On 8/10/06, Chris <dmagick@xxxxxxxxx> wrote:
afan@xxxxxxxx wrote: > Hi to all. > > Have a web site on server where magic quote is turned On. Because of > problems with quotes within forms, I was thinking to turn it Off. I wonder > how much work I'll have to change code to accept new setting? Are we > talking about major changes or something that could be done in day or two > (the site has few couple-pages long forms and about 10 "regular" contact > us/register/edit membership/edit account/... forms)? Copy it to a server where magic quotes is off and see what breaks. That will give you an idea of what needs fixing. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- GMail Rocks!!!