Check httpd.conf to see what, if anything, is in there that might be set to
alter Apache's server variables.
If phpinfo() aren't showing them, it's probably Apache isn't sending them.
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Art Boulatov <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 23, 2001 9:27 AM
Subject: Apache2/PHP: Undefined server variables
> 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,
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]