php.net |  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
Hi,

$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 - nielsonline.com

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-04 20:18 UTC] rasmus@php.net
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] waldschrott@php.net
closed
 [2004-03-27 18:38 UTC] jay at jvstudios dot com
Hi,
A work around - $rhost = @gethostbyaddr($REMOTE_ADDR);
Laters
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jan 20 23:01:25 2020 UTC