|
/*
* This script is copyright PHPGarage.com (On Line Construction Inc.). It may be used,
* changed, and distributed freely as long as this message and/or some type of recognition
* is given to PHPGarage.com or On Line Construction Inc.
*
* http://www.phpgarage.com
* http://www.onlineconstructioninc.com
*
*/
$TextFile = "ezcounter.txt";
$Count = trim(file_get_contents($TextFile));
settype($Count, "integer");
$Count++;
if ($FP = fopen ($TextFile, "w")){
fwrite ($FP, $Count);
fclose ($FP);
}
echo($Count);
?>
|
|