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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 04:01:31 2024 UTC