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
developerWorks - FREE Tools! |
You'll get answers to many questions and more from David Barnes, Lead Evangelist for IBM Emerging Internet Technologies. David will discuss aspects of Web 2.0 that bring value to corporations, academia, and government. He'll also discuss IBM's vision around Web 2.0, including the importance of remixability and consumability. The discussion will culminate with examples of various IBM Software Group solutions you can use to get ahead of the Web 2.0 adoption curve. FREE! Go There Now!
|
|
|
|
Join this webcast, to learn how the Rational Process Library can help with compliance issues, drive process improvement, and assist in service-oriented architecture (SOA) or Agile development. We will take a peek into the Rational Process Library with content around software and systems engineering (including RUP), operations and systems management, program and portfolio management, and asset and SOA governance. FREE! Go There Now!
|
|
|
|
You probably have thousands of lines of COBOL code loaded with business intelligence and being used to run your business, along with an army of developers maintaining these applications. Learn how to prepare your applications and developers so you can keep that competitive edge and move to a service-oriented architecture with the IBM Rational Enterprise Modernization solutions. Replay is available for 9 months. FREE! Go There Now!
|
|
|
|
This tutorial shows new users of IBM WebSphere Business Monitor Version 6.0.2 how to perform the "Hello World" equivalent for monitoring business process applications. It is intended to help you get familiar with the capabilities of the product. FREE! Go There Now!
|
|
|
|
Secure your Web applications with IBM Rational AppScan Standard Edition V7.7, previously known as Watchfire AppScan. This Web application security testing tool automates vulnerability assessments and scans and tests for common Web application vulnerabilities. Visit IBM developerWorks to download a free trial of IBM Rational AppScan Standard Edition V7.7. FREE! Go There Now!
|
|
|
|
Learn how Rational Build Forge can extend a simple compile and package build process by adding customization and deployment capability. Go from a manual method to automating: checking for code changes; getting the latest source; compiling and packaging; customizing; copying to and restarting a deployment server; and sending e-mail notification that a new version is available. FREE! Go There Now!
|
|
|
|
Join this Rational Talks to You teleconference on December 4 at 1:00 pm ET to discuss how Rational Method Composer can help meet your compliance objectives. Get your questions answered! FREE! Go There Now!
|
|
|
|
Get a free trial download of the latest version of IBM Rational Performance Tester V7.0.1, a load and performance testing solution for teams concerned about the scalability of their Web-based applications. Combining multiple ease-of-use features with granular detail, Rational Performance Tester simplifies the test-creation, load-generation and data-collection processes that help teams ensure the ability of their applications to accommodate required user loads. FREE! Go There Now!
|
|
|
|
Get a free trial download of the latest version of IBM Rational Tester for SOA Quality V7.0.1, a functional and regression testing tool that enables the creation, comprehension, modification and execution of testing GUI-less Web services. FREE! Go There Now!
|
|
|
|
As businesses grow increasingly dependent upon Web applications, these complex entities grow more difficult to secure. Most companies equip their Web sites with firewalls, Secure Sockets Layer (SSL), and network and host security, but the majority of attacks are on applications themselves – and these technologies cannot prevent them. This paper explains what you can do to help protect your organization, and it discusses an approach for improving your organization’s Web application security. FREE! Go There Now!
|
|
|
|
All FREE IBM® developerWorks Tools! |