Re: Troubleshooting Strange Problem

From: Date: Thu, 22 Feb 2001 19:57:52 +0000
Subject: Re: Troubleshooting Strange Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41206@lists.php.net to get a copy of this message
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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#41206) next »