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
 [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-2019 The PHP Group
All rights reserved.
Last updated: Sat Nov 16 22:01:35 2019 UTC