How can I get a user's IP address and OS?

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
jvoni
-


Joined: 15 May 2003
Posts: 9

PostPosted: Wed Jan 21, 2004 3:05 am    Post subject: How can I get a user's IP address and OS? Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Jan 22, 2004 11:55 am    Post subject: Re: How can I get a user's IP address and OS? Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group