A question on predefined variables

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
My apologies if my question sounds childish. Please explain the
following code to me. I found it at the beginning of a script.

if (isset($_REQUEST['GLOBALS']) OR isset($_FILES['GLOBALS']))
    echo 'Request tainting attempted.';

Also, I'll be very grateful if someone can suggest me a good reference
on predefined variables. (The one included in PHP Manual didn't help

Thanks a lot.

Re: A question on predefined variables

Le Poisson wrote:

Quoted text here. Click to load it

Its saying if $globals has a value then exit the script, ie. its trying
to prevent people from setting values themselves.. google has many
great php resources.


Site Timeline