PHP Classes

gnVisitorInfo: Gather information about a visitor of your site

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,593 All time: 2,468 This week: 660Up
Version License Categories
gnvisitorinfo 1.0GNU Lesser Genera...User Management, Geography
Description 

Author

The gnVisitorInfo class is meant to gather some information about the visitor on your page.

The information that is retrieved include: the IP address, the current page HTTP request method, browser identification, user machine operating system, and the country name determined from IP address.

Note that you need to install the a database table that is used to determine the country from the IP address. A dump of an updated IP to country database table may be obtained in the address listed in this package related links section.

Picture of Girish Nair
Name: Girish Nair <contact>
Classes: 3 packages by
Country: India India
Age: ???
All time rank: 65039 in India India
Week rank: 178 Up21 in India India Up

Details

Hello users, The gnVisitorInfo class helps you gather some information about the visitor on your page. Information extracted include - IP, Request method ,Browser Detail, Operating System Detail, Country Name resolving (from IP address) Accepted Language (To be implemented), Accepted Encoding (To be implemented), Accepted Charset (To be implemented) Note: You need the iplookup.sql database dump to get IP to Country resolving done. the sql is available here http://www.girishn.com/pages/downloads.php#gnVisitorInfo Regards, Girish For any bashing/thrashing/kicking/likeing use <girishn2003_@_yahoo_._co_._in> Installation: You need to copy the class files gnVisitorInfo.php & db_mysql.inc into the folder where your application lib is stored. Get the database SQL(if you don't have it already) from http://www.girishn.com/pages/downloads.php#gnVisitorInfo create a database by following steps 1. mysql -u mysqlusername -p 2. Enter the password when prompted 3. SQL> CREATE DATABASE gnPrograms; 4. SQL> QUIT 5. mysql -u mysqlusername -p gnPrograms < iplookup.sql Change the database setting in db_mysql.inc Now copy the example.php into the web root directory. and change the path for require("/your/path/to/gnVisitorInfo.php"); as per your installation Now access the example.php from different browsers. Tested on: PHP 4.3.2 OS: Linux, Windows 2000

  Files folder image Files (4)  
File Role Description
Plain text file db_mysql.inc Aux. mysql abstraction class from PHPLib
Plain text file example.php Example example script
Plain text file gnVisitorInfo.php Class Class file to help extract the information.
Accessible without login Plain text file Readme.txt Doc. Read this to get more Gyan.

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,593
This week:0
All time:2,468
This week:660Up