Re: php4 to php5
| From: | Greg Bowser | Date: | Thu, 03 Apr 2008 23:05:46 +0000 |
| Subject: | Re: php4 to php5 | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44859@lists.php.net to get a copy of this message | ||
Sounds like you're talking about the register_globals functionality. It's a
php.ini setting that will cause $_POST['foo'] or $_GET['foo'] to be copied
to the global variable $foo. This is somewhat of a security risk, thus
disabled by default.
There's another superglobal array that you might find useful: $_REQUEST.
$_REQUEST consists of variables from $_GET,$_POST,$_COOKIE (in that order, I
believe).
http://us3.php.net/manual/en/reserved.variables.php
http://us3.php.net/manual/en/ini.core.php#ini.register-globals
--GREG
(note:I also posted this to the php-general list as it isn't a db-related
topic.)