Just make a file named .htaccess with just the following line in it and place it in the top of your web root (or in a sub-dir if you only want it to affect those files).
php_value magic_quotes_gpc 1 That's it. Or you can just change the value in php.ini on your production server. ---John Holmes... > -----Original Message----- > From: W. Enserink [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 14, 2002 3:59 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] magic_quotes_gpc > > 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" <[EMAIL PROTECTED]> > To: "'Wilbert Enserink'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > 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:[EMAIL PROTECTED]] > > > Sent: Monday, October 14, 2002 3:40 AM > > > To: [EMAIL PROTECTED] > > > 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 > > > [EMAIL PROTECTED] > > > ------------------------- > > ------------------------- > Pas de Deux > Van Mierisstraat 25 > 2526 NM Den Haag > tel 070 4450855 > fax 070 4450852 > http://www.pdd.nl > [EMAIL PROTECTED] > ------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php