RE: [PHP-INST] PHP and SERVER variables
| From: | Sharat Hegde | Date: | Tue, 04 Mar 2003 08:09:28 +0000 |
| Subject: | RE: [PHP-INST] PHP and SERVER variables | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-10265@lists.php.net to get a copy of this message | ||
Also, one more thing I noticed was that <?php phpinfo(); ?> shows the Server
and PHP variables fine.
Regards,
Sharat Hegde
Phone: 6575800 Ext 4610
Direct: 6566615
-----Original Message-----
From: Sharat Hegde [mailto:shah@sonata-software.com]
Sent: Tuesday, March 04, 2003 1:19 PM
To: php-install@lists.php.net
Subject: [PHP-INST] PHP and SERVER variables
Hello,
I just upgraded from PHP3 to PHP4 on Apache 1.3.x on Windows NT. I need to
access the PHP and SERVER variables on my PHP 4 installation. My code is as
follows:
<?php
echo $SERVER_SOFTWARE;
echo $PHP_SELF;
?>
However, I get the following error:
Notice: Undefined variable: SERVER_SOFTWARE in c:\program files\apache
group\apache\htdocs\test\test1.php on line 2
Notice: Undefined variable: PHP_SELF in c:\program files\apache
group\apache\htdocs\test\test1.php on line 3
Can you help out?
Thanks,
Sharat
*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************