Re: newbie question: stripslashes vs. changing the php.ini file

From: Date: Sun, 05 Aug 2001 22:31:13 +0000
Subject: Re: newbie question: stripslashes vs. changing the php.ini file
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-8666@lists.php.net to get a copy of this message
I recently transfered a site from a server which WAS using 'magic_quotes_gpc' to one which wasn't. MAJOR pain to go through all of the code and add the addslashes() command, so probably (for portability reasons) bettert o use the addslashes() command by default. "Matt Cahill" <mattc@devine-ent.com> wrote in message news:173174261413.20010718164333@devine-ent.com... > Hello, > > This is my first post to this mailing list, so I hope this is > clear enough... > > What are the consequences of turning off 'magic_quotes_gpc' > (ignore quotes)in the php.ini file to avoid / marks in my comment > form, vs. inserting the line 'stripslashes($var);' in the page itself? > > Is this something that's going to haunt me later on if I continue to > develop my site using PHP? > > Cheers, > > Matt Cahill >

« previous php.windows (#8666) next »