Re: Computer Name
| From: | Justin French | Date: | Wed, 30 Apr 2003 08:47:20 +0000 |
| Subject: | Re: Computer Name | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145746@lists.php.net to get a copy of this message | ||
check out the stuff in the $_SERVER super global array... the contents vary
from server to server, but they can include the useragent string (browser,
version, platform/os, etc -- if set by the browser) the IP address (if
available & set, possibly the IP of a firewall, or anything else really),
and other stuff.
The trick is not to rely on ANYTHING from the client side... the user agent
string may not be set, the IP address may be fake, or change on each
request, etc etc. Do NOT rely on this stuff to "make or break" your
application (eg tying a session id to an IP), but perhaps use it for other
reasons (eg statistics gathering).
Have a look:
<pre>
<? print_r($_SERVER) ?>
</pre>
Justin
on 01/05/03 8:38 PM, John (johntamares@yahoo.com) wrote:
> Is it possible to get the
>
> 1. PC name
> 2. PC OS
> 3. Local IP
> 4. Intranet Gateway
>
> of the end user from the FORM submitted on the web ? How?
>
> Also, is it possible to get the IP address of the user if he is behind the
> firewall? How?
>
> Regards,
> John
>
>