| 
 Posted by flamer die.spam@hotmail.com on 10/02/06 21:21 
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.
 
[Back to original message] 
 |