php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #584 $GLOBALS['REMOTE_HOST'] is empty
Submitted: 1998-07-27 12:42 UTC Modified: 1998-07-27 13:41 UTC
From: wegmann at psi dot co dot at Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.1 OS: Linux RedHat 5.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wegmann at psi dot co dot at
New email:
PHP Version: OS:

 

 [1998-07-27 12:42 UTC] wegmann at psi dot co dot at
I compiled php with mysql as an apache module. 
Apache also contains SSL and mod_perl.

When I do:
<? $host = $GLOBALS['REMOTE_HOST'];
     echo "host: " . $host . "<br>\n";
?>

I don't get a value for $host.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-07-27 13:41 UTC] jim
REMOTE_HOST is only set by Apache when the remote hostname is known (that is, it has been looked via DNS because "HostNameLookups" is on in your Apache configuration or for some other reason like authentication, and it was found).



REMOTE_ADDR is always set to the IP address of the requesting host.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 14 06:01:27 2025 UTC