RE: [PHP] magic_quotes_gpc
| From: | John W. Holmes | Date: | Mon, 14 Oct 2002 15:32:55 +0000 |
| Subject: | RE: [PHP] magic_quotes_gpc | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119916@lists.php.net to get a copy of this message | ||
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:enserink@pdd.nl]
> Sent: Monday, October 14, 2002 3:59 AM
> To: holmes072000@charter.net; php-general@lists.php.net
> 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" <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
> -------------------------