Re: [PHP] Re: PHP 4.2

2002-06-25 Thread James Clifford
> 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

Re: [PHP] Re: PHP 4.2

2002-06-25 Thread James Clifford
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

Fwd: Re: Re: [PHP] Re: PHP 4.2

2002-06-24 Thread Dreamriver.com
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

[PHP] Re: PHP 4.2

2002-06-24 Thread Peter
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