Re: seems like magic_quotes_gpc is turning itsself on!

From: Date: Tue, 21 Oct 2003 11:28:47 +0000
Subject: Re: seems like magic_quotes_gpc is turning itsself on!
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-166931@lists.php.net to get a copy of this message
From: "William Bailey" <wb@pro-net.co.uk> > I have a strange problem with one of the sites i work on and provide > support for. I the following block of code that checks to see if > magic_quotes_gpc is enabled and if it is it dies with an error message: > > if((integer)ini_get('magic_quotes_gpc')!=0){ > ~ debug('Magic Quotes GPC is currently active. Please disable.'); > } > > The debug functoin just displays a sorry message on the browser and > emails the description and the serialized $GLOBALS variable back to me. > > in the php.ini i have the following: > > ; Magic quotes for incoming GET/POST/Cookie data. > magic_quotes_gpc = Off > > Now every so often say at most 1 in 100 hits a user will see the sorry > screen and i get a call back email and every time its the same issue > 'Magic Quotes GPC is currently active. Please disable.' Is it only for certain pages or random ones? Examing $GLOBALS doesn't give any clues, I presume? Nothing strange in the query string, etc? ---John Holmes...

« previous php.general (#166931) next »