|
-
Feb 3rd, 2002, 12:56 PM
#1
Thread Starter
Member
PHP: Remote address [resolved]
How can I get the IP address of a user that views a PHP page? In JSP it's
VB Code:
<%= request.GetRemoteAddr() %>
But how would I do it in PHP? What method?
Last edited by filburt1; Feb 4th, 2002 at 04:47 PM.
-
Feb 4th, 2002, 11:59 AM
#2
Black Cat
It's stored in the REMOTE_ADDR CGI environmental variable, which PHP assigns to $REMOTE_ADDR, IIRC.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Feb 4th, 2002, 04:47 PM
#3
Thread Starter
Member
You did RC, it works fine.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|