Conditional Byte Counter

Purpose: This script will parse your server log file, and total the bytes sent for requests within a certain directory.
It can also be configured to calculate the entire payload of sent data.

Copy and save the following code as byte_count.php in a folder on your webserver.

[Download] (right click -> Save Target As)

If you want to calculate the entire payload of data sent from your server, change /music to just /.

Note: You use this script at your own risk!

Bugs, comments, questions? Contact Me