PHP Classes
Icontem

File: Readme.txt


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Girish Nair  >  gnVisitorInfo  >  Readme.txt  
File: Readme.txt
Role: Documentation
Content type: text/plain
Description: Read this to get more Gyan.
Class: gnVisitorInfo
Gather information about a visitor of your site
 

Contents

Class file image Download
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


 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products