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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 08:01:29 2025 UTC