Home arrow MySQL arrow Logging with PHP
MYSQL

Logging with PHP


In this article, Tim shows us how to log hits on all of your web sites. They can even be on separate servers around the world.

Author Info:
By: Tim Perdue
Rating: 5 stars5 stars5 stars5 stars5 stars / 4
February 06, 2003
TABLE OF CONTENTS:
  1. · Logging with PHP
  2. · The Design
  3. · Source Code
  4. · Conclusion

print this article
SEARCH DEVARTICLES

Logging with PHP
(Page 1 of 4 )

Figuring out where your hits are coming from and which pages are being viewed is not too difficult if you use a good log analyzer like Analog or something similar, but if you want to pull up reports on the fly at any time, you need to take a different route.

For about six months, I was importing my Apache logs into an SQL database and then running ad-hoc queries against that.

Unfortunately, that requires me to go out and manually grab those log files, tweak the format a bit, then import. I wanted something better - something that was continually updated, flexible enough to simultaneously support multiple sites, and multiple actions (page view, ad click, click-in, click-out, plus more if needed).
blog comments powered by Disqus
MYSQL ARTICLES

- MySQL and BLOBs
- Two Lessons in ASP and MySQL
- Lord Of The Strings Part 2
- Lord Of The Strings Part 1
- Importing Data into MySQL with Navicat
- Building a Sustainable Web Site
- Creating An Online Photo Album with PHP and ...
- Creating An Online Photo Album with PHP and ...
- PhpED 3.2 More Features Than You Can Poke ...
- Creating An Online Photo Album with PHP and ...
- Creating An Online Photo Album with PHP and ...
- Security and Sessions in PHP
- Setup Your Personal Reminder System Using PHP
- Create a IP-Country Database Using PERL and ...
- Developing a Dynamic Document Search in PHP ...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials