Get Today’s Bandwith Usage from a Shoutcast Log
Shoutcast logs can be pretty big, if you don’t read them in line by line there is a fair chance of getting an out of memory error. The following function getShoutcastBW(logfile) simply returns the number of bytes streamed today out of the log. Good for calculating bandwidth. function my_strip($start,$end,$total){ $total = stristr($total,$start); $f2 = stristr($total,$end);… Read More »