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

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 08:01:32 2024 UTC