Re: magic_quotes_gpc

From: Date: Mon, 14 Oct 2002 07:59:08 +0000
Subject: Re: magic_quotes_gpc
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-119854@lists.php.net to get a copy of this message
Hi John, that sounds like a great solution for me!! thanx. Can you tell me a bit more about this solution. Can I just place the htaccess file in the root of my site? And do I have to include this file in my php scripts? thx .alot. Wilbert ----- Original Message ----- From: "John W. Holmes" <holmes072000@charter.net> To: "'Wilbert Enserink'" <wilbert@pdd.nl>; <php-general@lists.php.net> Sent: Monday, October 14, 2002 9:47 AM Subject: RE: [PHP] magic_quotes_gpc > If you're on apache, you can use an .htaccess file > > php_value magic_quotes_gpc 1 > > otherwise change it in php.ini or program for both settings... > > ---John Holmes... > > > -----Original Message----- > > From: Wilbert Enserink [mailto:wilbert@pdd.nl] > > Sent: Monday, October 14, 2002 3:40 AM > > To: php-general@lists.php.net > > Subject: [PHP] magic_quotes_gpc > > > > Hi all, > > > > I have a quetion on magic_quotes_gpc. > > The php.ini file on my test servers shows that magic_quotes_gpc=On. > > The php.ini file on the production server shows that > magic_quotes_gpc=Off. > > ==> I know this is a strange thing:-( > > > > So you guess what happened: all the scripts I have don't function > well. > > All input fields got escaped in the test environment but don't get > escaped > > in the real environment. So when I input the name o'brien you gueass > what > > happens. > > > > My Q: Is there a way to set the value for magic_quotes_gpc ?? Or is > there > > another solution. Or should I adjust all my scripts and use > > addslashes/stripslashes each time I put something into mysql > databaseor > > retrieve something from the db. > > > > I searched the manual but I could only find info about retrieving the > > value of get_magic_quotes_gpc and stuff about setting the value for > > set_magic_quotes, but there is no such a thing for > set_magic_quotes_gpc. > > > > > > Any help on this would be largelly appreciated! > > > > Wilbert Enserink > > > > > > ------------------------- > > Pas de Deux > > Van Mierisstraat 25 > > 2526 NM Den Haag > > tel 070 4450855 > > fax 070 4450852 > > http://www.pdd.nl > > info@pdd.nl > > ------------------------- ------------------------- Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl info@pdd.nl -------------------------

« previous php.general (#119854) next »