> foreach($HTTP_POST_VARS as $var => $val) {
> $$var = $val;
> }
>
> // repeat for the other relevant $HTTP_*_VARS
>
> The result was a short script that could be require_once'd at the
> top of every script that depended on register_globals being off.
Er, I mean 'that depended on registe
On Mon, Jun 24, 2002 at 09:24:13PM +0100, Peter wrote:
> If you want an all in one solution without having to have two versions,
> can't you read the status of register_globals from the config file and base
> the rest of the script on this?
> eg
> if (register_globals == 'on') {
> $name = _POST['n
Rasmus,
Yes, thank you, that's the function I wanted and didn't see ...
Kind Regards,
richard.
> You mean like php.net/version_compare ?
>
> On Mon, 24 Jun 2002, Dreamriver.com wrote:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you want an all in one solution without having to have two versions,
can't you read the status of register_globals from the config file and base
the rest of the script on this?
eg
if (register_globals == 'on') {
$name = _POST['name'];
$address = _GET['address'];
}
then you can access the varia
4 matches
Mail list logo