php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2425 $REMOTE_ADDR is empty getenv(REMOTE_ADDR) also .
Submitted: 1999-10-02 19:09 UTC Modified: 2000-06-09 03:19 UTC
From: radu dot herinean at atomic dot ro Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Beta 2 OS: NT 4.0 server
Private report: No CVE-ID: None
 [1999-10-02 19:09 UTC] radu dot herinean at atomic dot ro
<?php_track_vars;
echo ("REMOTE_ADDR does not work - > $REMOTE_ADDR <BR> " );
echo ("HTTP_HOST does work -> $HTTP_HOST <BR> ");
?>

track vars is on in php.ini also !
platform win NT 4.0 sp 4 server + IIS 4  + PHP 4 beta 2


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-09 03:19 UTC] zeev at cvs dot php dot net
Assuming you're using the ISAPI module, then getenv("REMOTE_ADDR") isn't supposed to work, since REMOTE_ADDR sits in IIS's environment table, and not the process environment table.

Anyway, try the latest version of PHP 4.0 (4.0.0).  It should fix the problem.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 13:01:29 2024 UTC