Chris wrote:
[color=blue]
> Chris wrote:
>
> <snip>
>
> Well, a little digging through the php manual set me straight. I'm using
> php 4.3.3, while my hosting service is using 4.0.6. The only way I can
> find to get my install to act like theirs is to set register_globals = On
> in the php.ini file. Either that or hope my hosting service upgrades
> (virtual host, not likely).
>
> If anyone has any other ideas, feel free to post.[/color]
Use $HTTP_POST_VARS['foo'] instead of $foo or $_POST['foo'] and it should
work nicely for both versions. Refer to my other post for more details.
You can also change the value of register_globals in your Apache config file
for a particular virtual host, if you're using Apache with the following
directive in a <virtualhost> section:
php_value register_globals 1
Doing this means you can just change the value for this particular
virtualhost if you are developing for more than one on your dev box.
--
Chris Hope
The Electric Toolbox -
http://www.electrictoolbox.com/