Basic Hit Counter In PHP
A very basic hit counter in PHP; it uses a text file to store the number of hits and displays the number of current hits.
|
On Friday, October 17th 2008 at 01:11 PM By Andrew Pociu (View Profile)
    (Rated 0 with 0 votes) |
Contextual Ads
More PHP Resources
Advertisement
{
$CntFile = "HitCounter.txt";
$CurrHits = $Hits[0]++;
$FileHandle= fopen($CntFile, "w"); // Open as a writable file
fputs($FileHandle, $CurrHits);
} |
Digg It!
Del.icio.us
Reddit
StumbleIt
Newsvine
Furl
BlinkList
|
|
Rate this code snippet
Current Comments
There are no comments.
|
Related Source Code
There is no related code.
Related Tutorials
There are no related tutorials.
PHP Job Search
|