IP Address?
| From: | Rob Day | Date: | Fri, 19 Apr 2002 19:20:30 +0000 |
| Subject: | IP Address? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-18681@lists.php.net to get a copy of this message | ||
How can I find out the IP address of the client requesting a given php file?
I know that you can use $HTTP_SERVER_VARS["REMOTE_ADDR"] in more recent
versions of PHP. Unfortunately, we only have PHP3.0.14 and I don't think
that this option is available in our ancient version. I also can't use
server side includes. An upgrade to PHP4 is in the works, but I can't wait
that long. How can I get a client's IP address with PHP3.014 and/or
JavaScript? Thanks in advance.
-Rob