PHP Web Digital Counter Code this PHP counter is a simple code to count the number of visits to a Web page, using a txt text file with the PHP fopen function.
PHP Tutorial Web page Digital counter code
This PHP counter is a simple speaker code to count the number of visits to a Web page, using a txt text file with the PHP fopen function.
*/
$log = ' log/count.txt ';
$count _img = ' img/counter ';
$fp = @fopen ($log, "r+") or Die ($log. ' Data file cannot be opened! ');
$count = Fgets ($fp, 64);
Flock ($FP, 2);
$count = (int) $count + 1;
Rewind ($FP);
Fputs ($fp, $count);
Fclose ($FP);
if ($conf _showcount = = ' 1 ') {
for ($i =0; $i
$num = substr ($count, $i, 1);
Echo ';
}
}
http://www.bkjia.com/PHPjc/632044.html www.bkjia.com true http://www.bkjia.com/PHPjc/632044.html techarticle PHP Web Digital Counter Code this PHP counter is a simple code to count the number of visits to a Web page, using a txt text file with the PHP fopen function. PHP Tutorials ...