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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
30 + 10 = ?
Subscribe to this entry?

 
 [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: Sat May 11 19:01:28 2024 UTC