0) { ob_end_flush(); } //These two lines were removed from Airtime 2.5.x at some point after Libretime forked from Airtime. //These lines allow seek to work for files. //Issue #349 $cur = $begin; fseek($fm,$begin,0); while(!feof($fm) && (connection_status() == 0) && ($cur <= $end)) { echo fread($fm, 1024 * 8); } fclose($fm); } }