Counters Code

  Home arrow Counters Code arrow Basic Statistics
COUNTERS CODE

Basic Statistics
By: Codewalkers
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2003-01-19

    Table of Contents:

     
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement
    BASIC STATISTICS script will track any access to your pages where the scripts is installed.
    Then this script will write some informations like:
    ID of the page, Browser type, IP of visitor, Posted date, Visitor date into the database.
    Webmaster can access this statistics from a special page.

    By : lvalics

    HOW TO INSTALL:

    Extract the zip containing the source files
    Upload the files using FTP to the server hosting your pages

    Create a database and dump the data from mysql.sql into your database.

    Open in your favorite editor the config.inc.php and set the requested data in:
    Site URL, Scripts PATH like /var/www/htdocs path, login and password for the Control Panel and access data to the database (name, login, password, IP and port)

    HOW TO INSTALL THE SCRIPT INTO PAGES FOR TRACKING:

    Open you page what you want to track.
    Copy the line before </body>, like:

    <img src="http://www.yourdomain.com/stat.php?idnews=NAME&posted=DATE width="1" height="1">

    Where NAME is an identifier for that page and DATE is date when you placed the script.
    For each page what you want to track, need to insert this line and if you want to track
    different pages with different identifier, place like this:

    INDEX PAGE
    <img src="http://www.yourdomain.com/stat.php?idnews=index&posted=2003:01:10 width="1" height="1">
    INTERNAL PAGES
    <img src="http://www.yourdomain.com/stat.php?idnews=internal&posted=2003:01:10 width="1" height="1">
    DOWNLOAD PAGE
    <img src="http://www.yourdomain.com/stat.php?idnews=download&posted=2003:01:10 width="1" height="1">

    HOW TO READ STATISTICS:

    We suggest to put the files in a directory like stat or statistics.
    Then open http://www.yourdomain.com/statistics.php
    Enter login and password and thn choose a page from drop down menu.

    For future questions, please contact us at it@grafx.ro or on FORUM - http://software.grafx.ro/forum

    Click to Download File



    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

    More Counters Code Articles
    More By Codewalkers

    blog comments powered by Disqus

    COUNTERS CODE ARTICLES

    - TG Who's Online
    - Text Based Counter that formats output
    - Counter & visitor statistics
    - Server Uptime Statistics
    - Chris Dingman's Hit Tracker Script
    - Graph Maker Function
    - Simple userOnline class
    - Adv. Log file generator
    - Logwriter
    - time_left()
    - Basic Statistics
    - Easy Counter
    - countCodeLines
    - MySQL Counter
    - bandwidthmeter


    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 11 - Follow our Sitemap