php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

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

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 02:01:30 2024 UTC