Apache2/PHP: Undefined server variables

From: Date: Sun, 23 Sep 2001 14:27:53 +0000
Subject: Apache2/PHP: Undefined server variables
Groups: php.general 
Request: Send a blank email to php-general+get-68420@lists.php.net to get a copy of this message
Hi, sorry if this is a dumb question (I think I've read the docs :) I 've just set up Apache-2.0.26-dev with php-4.0.8-dev both from CVS, and now when I try to access the server variables like: <?php echo $SERVER_NAME ?> or <?php echo $HTTP_USER_AGENT ?> I got "Undefined variable:" in the logs. The same is for: <?php echo $HTTP_SERVER_VARS[SERVER_NAME] ?> I played with php.ini with no effect. Could you please tell me if this happens due to misconfiguration of php/apache, or thats a known issue with Apache-2.0 and php? Also, under phpinfo() I cannot see any server variables at all, only those from the shell environment. Thanks a lot, Art.

« previous php.general (#68420) next »