Re: [PHP] global env variables not working in php-cgi

2001-04-16 Thread Franklin Hays
|But from looking at your output, there is definately something screwy with |their setup. | |In phpinfo, what are the settings for track_vars (if listed) and |global_vars? track_vars is set to ON for local and master. register_globals is set to ON for local and master. there isn't a listing for

Re: [PHP] global env variables not working in php-cgi

2001-04-16 Thread Plutarck
> The GLOBALS array contains an a array called GLOBALS, which contains > GLOBALS, endlessly. It will never ever end ;) It's fixed in 4.0.2. That was a typo. What I mean to say is that it's fixed in 4.0._4_, not _2_. -- Plutarck Should be working on something... ...but forgot what it was. ""Pl

Re: [PHP] global env variables not working in php-cgi

2001-04-16 Thread Plutarck
Btw, the reason you got all the output is why I said to hit the browser Stop button. Technically it will run forever. The GLOBALS array contains an a array called GLOBALS, which contains GLOBALS, endlessly. It will never ever end ;) It's fixed in 4.0.2. get_defined_vars isn't available till 4.0.

Re: [PHP] global env variables not working in php-cgi

2001-04-16 Thread Franklin Hays
Hello. The version is php-4.02 built on Sep 22, 2000. |What version of PHP? I ask because a few test functions aren't available on |older versions of PHP4. | |Try this piece of code: | |$arr = get_defined_vars(); | |print_r($arr); This gave me an error on get_defined_var() so I tried print_r($

Re: [PHP] global env variables not working in php-cgi

2001-04-16 Thread Plutarck
What version of PHP? I ask because a few test functions aren't available on older versions of PHP4. Try this piece of code: $arr = get_defined_vars(); print_r($arr); (if that doesn't work, try print_r($GLOBALS), but be sure to hit the Stop button on your browser, because it will print off an i

[PHP] global env variables not working in php-cgi

2001-04-16 Thread Franklin Hays
I am migrating a site to a new host (westhost.com) and having some issues. PHP was compiled as a cgi instead of a module which is what I have always used. This wasn't really an issue until I realized a lot of my scripts that depended on apaches environment variables ($REQUEST_URI, $HTTP_USER_AG