25838Creating Site Counterhttp://magix.c97.net/read.php?8Site counter is one of the earliest script I ever created. Most books and sites on PHP always teach site counter. So not to miss this trend, PhpMagix will also discuss on site counter, but since PhpMagix 'is Magix', I will not only discuss on simple counter, but also on visits counter, and image counter (a la bravenet).PHP > Tips and Tutorials > CountersOct 15, 2006C97dotnet
This script assumes that there is already a file that contains "0". You can just create this yourself, then upload it to the same directory as this script.
A counter is an essential part of a site to know how many people are coming to site. Here is an easy way to make a counter. All you need is access to PHP and be able to chmod a directory. We’re going to save the amount of hits in a .dat file, so you don’t even need a mySQL database. First off, you have create a directory and CHMOD it 777 so PHP can write the counter.dat file.
All of 1Scripts's flatfile scripts are completely free to use. You can modify the scripts to match the design of your own website. If you need help, just ask in the forum.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.