|Embedded hit counter 0.8||HTTP : counters & statistics||--||15278||1998-09-15 22:03:24||[ show ]|
|The function UpdateHitCount($filename) gets the global variable $pageHitCount, increments it, and actually writes the new value back into $filename, as the first line of PHP code. By storing the page's hits in itself, you can eliminate the need for another external file, or a database, containing just page hits.|
Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.