This simpel script stores page hits on a database file. In every visit, script counts the hits and updates database. To drive this PHP script , you need PHP, mySQL. You may setup script easily, just copy and paste following code into a page.
download script
Do not forget to create database table with this SQL script. Run sql script within phpmyadmin:
CREATE TABLE IF NOT EXISTS `mycounter` (
`hit` int(11) default '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8;
insert into mycounter (hit) values (0);
Labels: Counters
0 Comments:
Subscribe to:
Post Comments (Atom)