Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

WebProNews:
Using PHP to Track Site Visitors
Nov 17, 2004 @ 13:36:25

PHP Magazine has a new pointer today to an article talking about how to track your visitors using PHP.

A new article on Webpronews.com shows how to create a logging module for a PHP Web site, using nothing more than PHP and its built-in functions. The author elaborates on how to use PHP's special global variable, called $_SERVER, which can provide information about your visitors, and using fopen and fwrite to write the information to a log file so you can later view it and use it to create useful graphs and charts. Since, standard editors (like Notepad) display the log file infrmation in a hard-to-read format, the author goes one step further to show how to use PHPto genreate useful overviews. Read the Article...

This is a very basic, small and simple logging function to gain the details of the visitors to your site. Don't look for a complex log anaylzer here either - they just give you the code to display the results in a table...

tagged:

Link:


Trending Topics: