Re: PHP GET VARIABLES
| From: | Jordi Canals | Date: | Fri, 28 May 2004 00:07:02 +0000 |
| Subject: | Re: PHP GET VARIABLES | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-23880@lists.php.net to get a copy of this message | ||
You mean: setting register_globals = on, safe_mode is off by default.
Just setting register_globals = on you get the funtionally bellow wich is NO recommended for security reasons. Highly recommended to read this variables always from $_GET and $_POST global arrays, check and filter the values recived, and you will get a site a bit more secure.
Regards,
Jordi.
Svensson, B.A.T. (HKG) wrote:
Oh, forgett, I believe if you turn off safe mode, then you can access them via variable names, but not really recommended from a security point of view. -----Original Message----- From: Michael To: php-windows@lists.php.net Sent: 27-5-2004 22:37 Subject: [PHP-WIN] PHP GET VARIABLES I'm working through a tutorial book. They are retrieving variables from a GET parameter by just referencing the variable in the script. example: <?phpecho "Region Name is " . $regionName . "\n";?>