?
Solved

Using PHP to track web visitors IP addresses and info in MySQL database?

Posted on 2008-06-10
4
Medium Priority
?
715 Views
Last Modified: 2008-06-14
Hello everyone,

I want to track all the visitors to a certain page of a website in a database.  I want to record their IP addresses, time of visit and any other information I can gather using any method possible.  I am using PHP and MySQL.  What recommendations do you all have for logging as much information I can in the database everytime they visit a particular page.

Thanks!!
0
Comment
Question by:parlays
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
syedasimmeesaq earned 1200 total points
ID: 21755264
you could use
$ipadd = $_SERVER['REMOTE_ADDR']; to get ip address and then use timestamp to get time for their visit.
Thanks
0
 

Author Comment

by:parlays
ID: 21755276
Nice!! Thanks, how about getting advanced information, is there a good 3rd party service or something?
0
 
LVL 4

Assisted Solution

by:albuitra
albuitra earned 800 total points
ID: 21755290
review at http://pear.php.net/
there are some libraries you could use
http://pear.php.net/package/Log 
0
 
LVL 9

Assisted Solution

by:syedasimmeesaq
syedasimmeesaq earned 1200 total points
ID: 21755418
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question