Re: PHP linux binary and Super global variables
| From: | Stig S. Bakken | Date: | Tue, 21 May 2002 06:17:15 +0000 |
| Subject: | Re: PHP linux binary and Super global variables | ||
| References: | 1 | Groups: | php.dev php.dev |
| Request: | Send a blank email to php-dev+get-84211@lists.php.net to get a copy of this message | ||
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