Menu

 

PHP Hit Counter

Store count in MySQL database. The count is increased everytime the page is refresh. The counter can be reset by running a PHP script. For demonstration, look at the hit counter on my homepage. PHP files needed:

connect.phpDatabse configuration, you need to enter your database username, password, and host.
create_database.phpCreate a database name 'counter' to store the count value.
create_table.phpCreate table for database count, the table contains one field: count, which should allow up to 99,999,999 hits.
counter.phpCount up the value and display count every time executed.
reset_counter.phpThis file will reset the count to 0 every time executed.

Installation

Download
PHP Hitcounter