After a few hours of head bashing it was the simplest thing of all - the cgi was installed in /usr/local/bin/php and I was calling /usr/bin/php. This was the version that came with the linux installation....
Ori > On Tue, 2002-05-21 at 05:16, Ori Staub wrote: >> After compiling PHP 4.2.1 as a CGI binary and executing from the >> command promot (php -q) I noticed that the new Super Global variables >> dont work (in particular I need $_ENV and $_SERVER). >> I looked through the manual to find some answers but didnt. Is this a >> feature or bug? >> Ori > > Are you sure that it is in fact the CGI binary you are using? The CLI > version of PHP will not register these variables. Try 'php -r > var_dump(PHP_SAPI);' to see which one it is. > > - Stig > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php