php如何实现访问量统计

WBOY
Release: 2016-06-23 13:18:12
Original
1997 people have browsed it

例如今日访问量,昨日访问量,总访问量等等


回复讨论(解决方案)

记录用户的IP和访问日期
今日访问量:查询今天的记录数量
昨日访问量:查询昨天的记录数量
总访问量:查询总记录数量

create table test.hit(	id int primary key,testtest	ip varchar(20) default '0.0.0.0',	page varchar(300) default '' comment '页面',	hit int default 0,	`date` date)engine=myisam charset=utf8
Copy after login




用google analysis吧,用起来很简单页面就多加载一段js

我也在找类似的代码

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template