Php-mysql Course

This is a PHP script for counting and displaying simple statistics data of website traffic. Records and displays number of site visits and unique visitors, in the current and previous day, the number of online visitors in the last 60 seconds; as well as the top visits, visitors and record of online visitors, also, the IP of the current visitor.
The script is created with PHP. The traffic data can be saved in a text file on the server, or into a MySQL database (using PDO).
This script not records the accesses of bots engines (Googlebot, alexa, crawler, Gigabot, msn, ..., and others, total of 170 bots), and it can be included in both ".php" and ".html" files (but the server must run PHP).
It has been tested successfully on localhost (with XAMPP) and on the server of CoursesWeb.net, with Mozilla Firefox, Internet Explorer, Google Chrome and Opera.
- Details about Installation and Settings you'll find in "Read.html" file, in the archive with the script.


• To Download it, click: Script - Website Mini-Traffic.

Demo - here's an example with traffic data displayed by this script

Traffic data Start: 9-Aug-2012
Now: 11-Aug-2013, 07:02
Total site visits: 231561
  - Most: 2178 8-May-2013
    •  Yesterday: 1789
    •  Today: 490
- Unique Visitors -
  - Record: 1250 8-May-2013
    •  Yesterday: 789
    •  Today: 190
- Online -
  - Record: 11 12-May-2013, 07:02
  - Most-Today: 5 00:09
  - Most-Yesterday: 8
  •  Now: 3

  Your IP:   109.210.78.90

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which tag defines the clickable areas inside the image map?
<map> <img> <area>
<img src="image.jpg" usemap="#map1">
<map name="map1">
  <area shape="rect" coords="9, 120, 56, 149" href="#">
  <area shape="rect" coords="100, 200, 156, 249" href="#">
</map>
Which CSS property defines what is done if the content in a box is too big for its defined space?
display overflow position
#id {
  overflow: auto;
}
Click on the event which is triggered when the mouse is positioned over an object.
onclick onmouseover onmouseout
document.getElementById("id").onmouseover = function(){
  document.write("Have Good Life");
}
Indicate the PHP variable that contains data added in URL address after the "?" character.
$_SESSION $_GET $_POST
if(isset($_GET["id"])) {
  echo $_GET["id"];
}
PHP Script Website Mini-Traffic

Last accessed pages

  1. Arrays in ActionScript 3 (3060)
  2. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (137119)
  3. Read Excel file data in PHP - PhpExcelReader (96540)
  4. The School for Gods (5713)
  5. Zodiac Signs JavaScript code (10966)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (317)
  2. PHP Unzipper - Extract Zip, Rar Archives (108)
  3. Read Excel file data in PHP - PhpExcelReader (101)
  4. SHA1 Encrypt data in JavaScript (81)
  5. Get and Modify content of an Iframe (73)
Chat
Chat or leave a message for the other users
Full screenInchide