PHP Learning notes: PHP network traffic statistics System
Description: Code Source "PHP and MySQL Web application Development" a book, and there is some of the code is modified, after my test all can be used. This inside the IP address shows the normal, my computer is supported IPv6. The database script for this example executes the set names GBK first; (Because the script contains Chinese) then execute the statement: source D:\test\Vote.sql;
CREATE DATABASE IF not EXISTS fluxstatcollate ' gb2312_chinese_ci '; Use Fluxstat; CREATE TABLE IF not EXISTS WebInfo (Id INT auto_increment PRIMARY KEY, WebName varchar (), WEBURL varchar (2 XX), StartTime DATETIME, Ntotalnum int, Ndaymax int), INSERT into WebInfo (WebName, WebUrl, StartTime, Ntotalnum, Ndaymax) VALUES (' Flow Statistics System homepage ', ' http://localhost/test3/FluxStat/index.php ', ' 2015-07-07 0:0:0 ', 0, 0); CREATE TABLE IF not EXISTS Visitors (Id INT auto_increment PRIMARY KEY, Vtime DATETIME, VIP VARCHAR (), V OS varchar (a), Vexp varchar (50), vRef varchar; CREATE TABLE IF not EXISTS fluxstat (Id int auto_increment PRIMARY KEY, D1 int, D2 int, D3 int, D4 int, D5 int, D6 int, D7 int, D8 int, D9 int, D10 int, D11 int, D12 int, D13 int, D14 int, D15 int, D16 int, D17 int, D18 int, D19 int, D20 int, D21 int, D22 int, D23 int, D24 int, D25 in T, D26 int, D27 int, D28 int, D29 int, D30 int, D31 int, mtotalnum int);
Style. CSS CSS style code class file contains 3 files fluxstat.php (Fluxstat Class), visitors.php (Visitors Class) and webinfo.php (WebInfo Class) fluxstat.php store the site every Number of days of visits
http://www.bkjia.com/PHPjc/1028404.html www.bkjia.com true http://www.bkjia.com/PHPjc/1028404.html techarticle PHP Learning notes: PHP network traffic statistics System description: Code Source "PHP and MySQL Web application Development" a book, there is some code is modified, after my test all can ...