WC_Download_Handler::readfile_chunked
Read file chunked.
Reads file in chunks so big downloads are possible without changing PHP.INI - http://codeigniter.com/wiki/Download_helper_for_large_files/.
Метод класса: WC_Download_Handler{}
Хуков нет.
Возвращает
bool. Success or fail
Использование
$result = WC_Download_Handler::readfile_chunked( $file, $start, $length );
- $file(строка) (обязательный)
- File.
- $start(int)
- Byte offset/position of the beginning from which to read from the file.
- $length(int)
- Length of the chunk to be read from the file in bytes, 0 means full file.
Код WC_Download_Handler::readfile_chunked() WC Download Handler::readfile chunked WC 11.3.0
public static function readfile_chunked( $file, $start = 0, $length = 0 ) {
return self::READ_RESULT_SUCCESS === self::readfile_chunked_with_result( $file, $start, $length );
}