RE: [PHP] magic_quotes_gpc
| From: | John W. Holmes | Date: | Mon, 14 Oct 2002 07:47:52 +0000 |
| Subject: | RE: [PHP] magic_quotes_gpc | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119847@lists.php.net to get a copy of this message | ||
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
> -------------------------