Giter VIP home page Giter VIP logo

traffic_tracker_v01's Introduction

traffic_tracker

PHP traffic tracker. It simply records the time, IP address and referrer to a file.

The purpose of this traffic tracker is just to create a simple collection of log files for you to glean data about IPs and what times and dates you are receiving the most traffic. It is very simple in nature and will work on any server running Apache with PHP support.

To use, include this file in the page or pages that you would like to track IP hits on. It has only been tested on a single page app so far, so it is possible that it may not work across multiple pages (if several requests to open the same file are being made simultaneously).

According to this posting, normally you would not have two requesters requesting at the same time one requestor will get an exception (and thus it wouldn't record that visit). However nanosecond collisions are extremely unlikely to happen. A later update may just spin up a small SQL database to handle this possible issue altogether as dbs will always lock and manage threads by default.

Another plan is to have a UI display and a true hit counter which displays an integer for visits.

To use simply include tracker.php.

include 'tracker.php';

traffic_tracker_v01's People

Watchers

James Cloos avatar A.M. Nolan avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.