View previous topic :: View next topic |
Author |
Message |
jvoni -
Joined: 15 May 2003 Posts: 9
|
Posted: Wed Jan 21, 2004 3:05 am Post subject: How can I get a user's IP address and OS? |
|
|
I want to log visitor to my site. I want to track IP addresses and OS. Is there a call I can make to get this info???
Thanks in advance:
Jason |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Jan 22, 2004 11:55 am Post subject: Re: How can I get a user's IP address and OS? |
|
|
jvoni,
This information is already logged in your log file access.log. Use a log analyzer such as AWStats to get nice statistics later (see the tutorial in http://www.aprelium.com/forum/viewtopic.php?t=422).
If you want to get this information inside a script, you must get the value of the environment variables REMOTE_ADDR and HTTP_USER_AGENT (for example, in PHP, you can access these using $_SERVER['REMOTE_ADDR'] and $_SERVER['HTTP_USER_AGENT']). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|