Solved

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

Posted on 2008-06-10
4
713 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 300 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 200 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 300 total points
ID: 21755418
0

Featured Post

Don't miss ATEN at NAB Show April 24-27!

Visit ATEN at NAB Show to learn how our "Seamlessly Entertaining" solutions deliver fast, precise video streaming without delays for the broadcasting and media environment. ATEN will showcase its 16x16 Modular Matrix Switch (VM1600) and KVM Over IP Solution (KE6900 series).

Question has a verified solution.

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

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

749 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