PHP Learning Note: PHP network traffic statistics System _php Tutorial

Source: Internet
Author: User

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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.