|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7639 $REMOTE_HOST
Submitted: 2000-11-04 17:28 UTC Modified: 2000-11-05 12:36 UTC
From: niels at nielsonline dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.3pl1 OS: Linux
Private report: No CVE-ID: None
 [2000-11-04 17:28 UTC] niels at nielsonline dot com

$REMOTE_HOST doesn't work in php4.0.3pl1. Maybie this bug has been submitted already, but i coul'd not find a list of submitted bugs.

Bye ;)
Niels -


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-04 20:18 UTC]
REMOTE_HOST is only available if your web server is configured to do dns lookups on each request.  By default dns lookups are not turned on in Apache, so I would guess that this is your problem and that it has nothing to do with PHP.
 [2000-11-05 12:36 UTC]
 [2004-03-27 18:38 UTC] jay at jvstudios dot com
A work around - $rhost = @gethostbyaddr($REMOTE_ADDR);
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jan 20 23:01:25 2020 UTC