Re: [PHP] seems like magic_quotes_gpc is turning itsself on!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It can be on any page. The magic_quotes_gpc check takes place in a settings.php file which is always the first thing included for every php page for this site. It has a number of define statements and a few other includes and thats about it. No database connections or anything else apart from class and function declarations have taken place. CPT John W. Holmes wrote: | From: "William Bailey" <[EMAIL PROTECTED]> | |>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... | | - -- Regards, William Bailey. Pro-Net Internet Services Ltd. http://www.pro-net.co.uk/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/lR68zSfrYDJMXmERArIOAKCW7GgGw1+tp6q+mNNEY3tBtA0hAACgx0mD 8YVju4wwttUPFJtBz+EBwJk= =xVnS -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] seems like magic_quotes_gpc is turning itsself on!
From: "William Bailey" <[EMAIL PROTECTED]> > 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... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] seems like magic_quotes_gpc is turning itsself on!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, 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.' Anybody have any ideas on where to look? -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/lP+zzSfrYDJMXmERAsiiAJ47tIqPJAnleJ8IuWNqsiStD7lOwgCfcO2n ooo0+PKIf5T96UoWcqIQVWc= =hIFY -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php