Ask a Question related to PHP Development, Design and Development.
-
darren at aoitalk dot com #1
#24553 [NEW]: Error with $_SERVER["REMOTE_ADDR"]
From: darren at aoitalk dot com
Operating system: OSX 10.2.6
PHP version: 4.3.3RC1
PHP Bug Type: HTTP related
Bug description: Error with $_SERVER["REMOTE_ADDR"]
Description:
------------
Hi all,
I am unsure if I have this right.... but using an OSX
10.2.6 Server running 4.3.3RC1, when I ask for the users IP
address via $_SERVER["REMOTE_ADDR"] I get the IP address of
the webserver, not the browser client, though if I ask for
$_SERVER['HTTP_PC_REMOTE_ADDR'], I do get the client IP.
Hope this helps
Daz
Reproduce code:
---------------
print '<pre>';
print_r($GLOBALS);
PRINT '</pre>';
Expected result:
----------------
[REMOTE_ADDR] => <my browser ip address>
Actual result:
--------------
[REMOTE_ADDR] => <my web server ip address>
--
Edit bug report at [url]http://bugs.php.net/?id=24553&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=24553&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=24553&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=24553&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=24553&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=24553&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=24553&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=24553&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=24553&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=24553&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=24553&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=24553&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=24553&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=24553&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=24553&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=24553&r=gnused[/url]
darren at aoitalk dot com Guest
-
#12029 [Com]: "--with-apxs" can cause the error "MySQL: Unable to save result set in"
ID: 12029 Comment by: sietzepost at streetwisedd dot nl Reported By: root at byone dot com Status: Bogus Bug... -
ServerVariables("Remote_Addr") returns local address
I hope one of you guys can find a solution to my problem. We are trying to capture the IP addresses of outside users accessing our website.... -
#24515 [Fbk->NoF]: $_SERVER[remote_addr] different to $remote_addr
ID: 24515 Updated by: sniper@php.net Reported By: phpbug at easihosting dot co dot uk -Status: Feedback... -
#24515 [Opn->Fbk]: $_SERVER[remote_addr] different to $remote_addr
ID: 24515 Updated by: sniper@php.net Reported By: phpbug at easihosting dot co dot uk -Status: Open +Status: ... -
#24515 [Fbk->Opn]: $_SERVER[remote_addr] different to $remote_addr
ID: 24515 User updated by: phpbug at easihosting dot co dot uk Reported By: phpbug at easihosting dot co dot uk -Status: ...



Reply With Quote

