Re: PHP linux binary and Super global variables

From: Date: Wed, 29 May 2002 10:47:54 +0000
Subject: Re: PHP linux binary and Super global variables
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-84521@lists.php.net to get a copy of this message
Stig S. Bakken wrote: > Are you sure that it is in fact the CGI binary you are using? The CLI > version of PHP will not register these variables. I have php 4.2.1 binary installed as CLI and $_SERVER is registered. [asterix@apenguin asterix]$ php -v 4.2.1 [asterix@apenguin asterix]$ php -r 'var_dump(PHP_SAPI);' string(3) "cli" [asterix@apenguin asterix]$ php -r 'var_dump($_SERVER);' | head array(32) { ["PWD"]=> string(13) "/home/asterix" ["XAUTHORITY"]=> string(25) "/home/asterix/.Xauthority" ["KONSOLE_DCOP"]=> string(29) "DCOPRef(konsole-1482,konsole)" ["GS_LIB"]=> string(30) "/home/asterix/.kde/share/fonts" ["HOSTNAME"]=> [asterix@apenguin asterix]$ -- Alessandro 'Asterix' Astarita <aleast@capri.it> "Unix IS user friendly. It's just selective about who its friends are"

« previous php.dev (#84521) next »