When I try to print the $_SERVER variable from a command line php, it thinks $_SERVER is not set.
$ php -r "print_r($_SERVER);"
Warning: print_r() expects at least 1 parameter, 0 given in Command line code on line 1
However, when it's in a file, running it from the command line has it set
$ cat test.php
<?
print_r($_SERVER);
$ php test.php
Array
(
[TERM] => xterm
[SHELL] => /bin/bash
[SSH_CLIENT] => 192.168.1.101 49319 22
[SSH_TTY] => /dev/pts/0
...
Why?