It could have to do with the register_globals setting (within php.ini)
as the following :
<?php
// foo.php?fruit=apple
echo $fruit;
?>
Will print nothing if register_globals is off. The following will
print it correctly, whether on or off (assuming track_vars is on) :
<?php
// foo.php?fruit=apple
echo $HTTP_GET_VARS['fruit'];
?>
Perhaps one script takes register_globals and track_vars into account
while another does not. See :
http://www.php.net/manual/en/configuration.php#ini.register-globals
This setting can be seen through phpinfo().
Regards,
Philip Olson
http://www.cornado.com/
On Thu, 22 Feb 2001, Ben Ocean wrote:
> Hi,
> I moved my server, changed the IP addresses, etc., and now I'm having
> strange problems with PHP. Not on all scripts, just some. Scripts that
> worked just fine before I moved it. Most notably, I'm working with Phorm <
> http://holotech.net > and I can no longer pass certain variables. Again:
> this worked *just fine* before I moved the server. Makes me think it's got
> nothing to do with the script, so what could have gone wrong with the
> server? Again, certain scripts, such as FishCart < http://fishcart.org >
> continue to work fine after the move. Has anybody run into anything like
> this before? Your help would be appreciated.
> TIA,
> BenO
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]