Ads
Amazon.com : You surely already know them...
Lunarpages webhosting : Standard Web Hosting Plan starting at $7.95 a month includes 1000MB storage and 40GB data transfer.
Quote of the day : "Often, I must speak otherwise than I think. That is called diplomacy." Stilgar

Next quote in 12.6 hours. [suggest a quote]

Our free stuff

PHP Scripts → Counter (hits + unique visitors)

Archive contents :
- create_table.php : 
	run it once (after editing its parameters ! ;) ) to create the data table.
- counter.php :
	the counter script
- mypage.php :
	an example page showing the counter
- count.txt :
	the file recording hits and visitors. The first value is hits, the second one unique visitors
- GNUGPL.txt : 
	The GNU General Public License :)

Required : PHP and MySQL

How to get it work :
1. Enter your database informations in create_table.php and counter.php
2. Run create_table.php to create the table
3. Add include("counter.php"); where you want to show the counter
4. Err... modify the counter's look (optional but I think it's badly needed in this case...)


/*************************************************************************
*                                                                        *
* This script counts the hits and unique visitors                        *
*                                                                        *
* Copyright (C) 2004-2005 PatheticCockroach <http://www.mpam3.fr.st>     *
*                                              Revision #1               *
*                                                                        *
* This program is free software; you can redistribute it and/or modify   *
* it under the terms of the GNU General Public License as published by   *
* the Free Software Foundation; either version 2, or (at your option)    *
* any later version.                                                     *
*                                                                        *
* This program is distributed in the hope that it will be useful,        *
* but WITHOUT ANY WARRANTY; without even the implied warranty of         *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
* GNU General Public License for more details.                           *
*                                                                        *
* You should have received a copy of the GNU General Public License      *
* along with this program; if not, write to the Free Software            *
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.              *
* You can also provide yourself with an online copy of the text:         *
* <http://www.gnu.org/copyleft/gpl.html>                                 *
* <http://www.gnu.org/copyleft/gpl.txt>                                  *
*                                                                        *
*************************************************************************/
Download