Part 1 of 2 Tutorial to create a hit counter using php/mysql. Some of the feature discussed in thi tutorial will be show no, of online, unique visitor , visit log & etc. A good & practical tutorial for begineers.
This tutorial will teach you how to create your own advanced counter. This is not a common way when you need to write each time when user reloads the page, but this is cookies based technique for counting real people. You will be able to count old and new visitors, and hits as allways. Information is stored in one MySQL table. This pretty fast method works great for heavy sites.
This tutorial is intended for PHP programmers interested in learning how to apply PHP's GD image manipulation support. Readers interested in learning how to access a MySQL database from PHP, and/or define a PHP function will also benefit from this tutorial. You should be able to create a table using the MySQL command interface, and must know how to create a GIF using any commercial paint program.