Solved

Bandwith used this month stat

Posted on 2003-10-23
2
225 Views
Last Modified: 2008-03-06
I was wondering in lieu of ASCII_Man's comment about actually displaying how much bandwith has been used on a site. How would I go about doing this? Would I need some special apache logs or could I do this straight through PHP? How about displaying the bandwith usage for one year? One month? The last hour?

Thanks in advance for any input!
0
Comment
Question by:drakkarnoir
2 Comments
 
LVL 8

Accepted Solution

by:
inq123 earned 500 total points
ID: 9609681
You do need to have apache server logs (unless you use mod_rewrite to have a php program fetch and serve all files but that might still have some problem dealing with CGIs).  Once you have the access_log for apache, then one option is to use a perl script http://martin.gleeson.com/pwebstats/ to parse and generate graphics for you.  If you insist on php, this one's simple: http://www.php-scripts.com/php_diary/012103.php3

But there are so many web stats analyser such as webalizer, EasyStat, and your web hosting companies would offer one if you use hosting companies.
0
 
LVL 2

Expert Comment

by:ramonklown
ID: 9614381
It's not worth the trouble going on about doing this unless you want to open up a business. If you still want to go off and break your head be my guest and go to www.google.com and start typing :)
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Google Maps API and PHP 25 49
What if i make webbased alternative for MS Access 5 71
Ajax and PHP 4 31
How to extract database info from current month and year 7 13
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question