PHP计数器
<?php
$counterFile = "balong.txt";//存储数值的文件名几路径
function displayCounter($counterFile) {
$fp = fopen($counterFile,"rw");
$num = fgets($fp,5);
$num += 1;
print "您是第 "."$num"." 个看[Int..09]→L 计数器的朋友";
exec( "rm -rf $counterFile");
exec( "echo $num > $counterFile");
}
if (!file_exists($counterFile)) {
exec( "echo 0 > $counterFile");
}
displayCounter($counterFile);
?>
posted on 2009-07-15 10:43 [Int..09]→L 阅读(221) 评论(0) 收藏 举报
浙公网安备 33010602011771号