PHP Classes
elePHPant
Icontem

File: webTrack.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of ashwin suresh morey  >  Web Tracker  >  webTrack.txt  >  Download  
File: webTrack.txt
Role: Documentation
Content type: text/plain
Description: document file
Class: Web Tracker
Track site user accesses with a MySQL database
Author: By
Last change:
Date: 9 years ago
Size: 1,023 bytes
 

Contents

Class file image Download
This class makes use of web beacons (web bugs)
Web beacons: is an object that is embedded in the web page and is usually invisible to the user but allows tracing the browser behavior of the user.

How it works:
Typically, web beacon is usually a (1*1 pixels) transparent gif image embedded in an HTML page. Whenever user opens the page in the graphical browser the image is downloaded. This download requires the browser to request the image to the server storing it. As a result the organization running the server is informed when the html page is viewed.

Parameters that can be tracked by this class are: 
IP address of the requesting user
Date and time of the visit

To use this class you are required to add this simple code anywhere in the web page
<img height="1" width="1" src="example.php" alt="" />
And make following changes to the db_connect.php file
$this->hostName = ' ';
$this->userName = ' ;
$this->password = ' ';
$this->dbName = ' ';

This is a great tool for web traffic analysis.