User Tracker

I need a way to track the amount of users going on to my site as well as their ip address. How can I do this? Note: I am am beginner
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You ask 2 different questions :
 - the IP address of your visitor rely in a log file that is on the Web server where your web site is hosted.
If you use Apache as a web server, this file is compliant with the common log format where the IP/name of the visitor is the first information on each line.

 - How to count the numbr of users that you have is an other question, If a user has a dial up connection, his ip address may change from one session to the other. So the best way would be to have a cookie variable (if you use apache you canuse the mod_cookie module) so that each new user woud have a cookie set and then you would only have to count the number of cookies that where set to know how much users have come to your web site.

Hope all this helps.
phitaAuthor Commented:
so what is the code to use and where do i put it. apache's website is ???
Note i am a beginner at CGI. It is something like javascript? Can I have a code that does both at the same time?
It will be quite hard to explain you how to solve all this matter at once.
Apache web site is
They have a complete online documentation where I am sure you will find information about mod_cookie and others.
What you can do is use Server Side include, you could then add a line like where you would update a number based on the presence of a cookie or not.
I am sure that this does not answer all your question but its a start

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
phitaAuthor Commented:
ok thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.