Here is how to watch a log file for changes in a Linux command shell.
// will output i.e. 1KB (function always accepts bytes value)
echo convert(1024);
$sniffer = new Smartycode_Http_Mime();
$contentType = $sniffer->getMime($url);
if('audio/mpeg3' == $contentType) echo 'It is MP3';