0) { ob_end_flush(); } // NOTE: We can't use fseek here because it does not work with streams // (a.k.a. Files stored in the cloud) while(!feof($fm) && (connection_status() == 0)) { echo fread($fm, 1024 * 8); } fclose($fm); } }