标签:
<?php
$count=0;
if(file_exists("count.txt")) //判断是否存在count.txt文件
{
$count=file_get_contents("count.txt"); //取出文件count.txt中的内容
}
$count++;
echo "访问量:".$count;
file_put_contents("count.txt",$count); //讲$count的值写入count.txt文件中
?>
标签:
原文地址:http://www.cnblogs.com/vanone/p/5416448.html