Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Location
    Australia (Crikey)
    Posts
    2,271

    Red face Echo bandwidth usage via PHP?

    Hi, I run an image hosting site. I have made modifications, changes etc. and only one thing remains - displaying how much banwidth the site has used. Is there a way to display the sites bandwidth usage via PHP without running some 3rd party bandwidth monitor? Cant PHP connect to the raw apache logs etc.

    Thanks

  2. #2
    Join Date
    Jul 2003
    Location
    Kuwait
    Posts
    5,099
    You can read the logs with PHP (not a problem, as they are plain text files). You really don't want to re-invent the wheel though. Check phpclasses.org (and other resources). Perhaps there is something out there that you can use.

    You might also consider plugging into the many excellent and free statistics packages available. Have them do the data collection (what they are good at) and then write your own frontend to it in PHP.
    In order to understand recursion, one must first understand recursion.
    If you feel like it, you can read my blog
    Signal > Noise

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •