By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,290 Members | 1,426 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,290 IT Pros & Developers. It's quick & easy.

A question on predefined variables

P: n/a
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.';
exit;
}

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
much.)

Thanks a lot.

Oct 2 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Le Poisson wrote:
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.';
exit;
}

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
much.)

Thanks a lot.
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.

Flamer.

Oct 2 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.