Solved

Bandwith used this month stat

Posted on 2003-10-23
2
228 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
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…

627 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