framework/Mvc/Extensions/Ckfinder/lib/core/connector/php/php5/Utils/FileSystem.php
public static function readfileChunked($filename)
    {
        $chunksize = 1024 * 10; // how many bytes per chunk

        $handle = fopen($filename, 'rb');
        if ($handle === false) {
            return false;
        }
        while (!feof($handle)) {
            echo fread($handle, $chunksize);
            @ob_flush();
            flush();
            @set_time_limit(8);
        }
        fclose($handle);
        return true;
    }
public static function readfileChunked($filename)
    {
        $chunksize = 1024 * 10; // how many bytes per chunk

        $handle = fopen($filename, 'rb');
        if ($handle === false) {
            return false;
        }
        while (!feof($handle)) {
            echo fread($handle, $chunksize);
            @ob_flush();
            flush();
            @set_time_limit(8);
        }
        fclose($handle);
        return true;
    }
public static function readfileChunked ( $ filename ) { $ chunksize = 1024 * 10 ; // how many bytes per chunk $ handle = fopen ( $ filename , 'rb' ) ; if ( $ handle === false ) { return false ; } while ( ! feof ( $ handle ) ) { echo fread ( $ handle , $ chunksize ) ; @ ob_flush ( ) ; flush ( ) ; @ set_time_limit ( 8 ) ; } fclose ( $ handle ) ; return true ; }
Read file, split it into small chunks and send it to the browser

@static
@access public
@param string $filename
@return boolean
Read file split it into small chunks and send it to the browser