![]() |
|
The hostname is very important to identify the client. PHP gives us the IP address that I like to convert to hostname with gethostbyaddr(). I think it's better to see a string. The time of visit can be stored easily by using the NOW() function of MySQL. 3. The visited page on your site should be stored. In most cases, you should store the URL of the visited page and the HTML title in two separated fields, eg. URL and Title fields, so that you'll be able to see your most visited sites simply by looking through the list of their titles. Business - Click the link on the left to visit our partner sites under business/finance/loan/mortgage category Computers - Click the link on the left to visit our partner sites under computer hardware/software/peripheral category Internet - Click the link on the left to visit our partner sites under webhosting/webdesign/internet marketing category Software - Click the link on the left to visit our partner sites under software category Web Design - Click the link on the left to visit our partner sites under web design/development category Web Hosting - Click the link on the left to visit our partner sites under web hosting category Web Promotion - Click the link on the left to visit our partner sites under search engine optimization/internet marketing category Web Resources - Click the link on the left to visit our partner sites under other web category Recreation - Click the link on the left to visit our partner sites under travel/hotel/cruise category Casino - Click the link on the left to visit our partner sites under online gambling/poker/blackjack/roulette category Health - Click the link on the left to visit our partner sites under online pharmacy/hospital/health category Shopping - Click the link on the left to visit our partner sites under online shopping/gift category Miscellaneous - Click the link on the left to visit our partner sites under all other categories
Making usage statistics on a web site is one of the most enjoyable things for me on the Internet. Thanks to the technology, you can see each click of each visitor, the date of the visiting, and how many seconds the user was reading your site. To save the requested URL in the database you can use $_SERVER['PHP_SELF'] that gives you the URL without the domain name or $_SERVER['QUERY_STRING'] that gives you the parameters in the URL after the question mark. |
Partners |