|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6789 $HOSTNAME variable not recognized anymore
Submitted: 2000-09-17 09:52 UTC Modified: 2000-10-16 11:09 UTC
From: harry at forbess dot com Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 4.0.2 OS: solaris 5.7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: harry at forbess dot com
New email:
PHP Version: OS:


 [2000-09-17 09:52 UTC] harry at forbess dot com
we have a little script that allows our pages to know if they are on our dev server or production server. This script ceased to function because the variable $HOSTNAME does not return anything


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-21 07:18 UTC]
Please try <?php phpinfo() ;?> and check the Environment-section for HOSTNAME.
And please include your configure line and php.ini file here.

 [2000-10-16 11:09 UTC]
No feedback.
Try using this instead: $HTTP_ENV_VARS["HOSTNAME"]

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Jul 27 05:01:24 2021 UTC