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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: radu dot herinean at atomic dot ro
New email:
PHP Version: OS:

 

 [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: Sat Apr 27 14:01:30 2024 UTC