$countfile"); print "造访量总计:"."$num"."人次";//显示" /> 
快捷搜索:

php的计数器程序

1)文本计数器

$countfile");

}

$fp = fopen($countfile,"rw");

$length=filesize($countfile);

$num = fgets($fp,$length);

$num += 1;

exec( "rm -rf $countfile");

exec( "echo $num > $countfile");

print "造访量总计:"."$num"."人次";//显示造访次数

?>

2)图形计数器

$countfile");}

$fp = fopen($countfile,"rw");

$length=filesize($countfile);

$num = fgets($fp,$length);

$num += 1;

exec( "rm -rf $countfile");

exec( "echo $num > $countfile");

$len_str = strlen($num);

for($i=0;$i

您可能还会对下面的文章感兴趣: