bzopen

(PHP 4 >= 4.0.4, PHP 5)

bzopen -- нРЙПШБЮЕР ДКЪ ПЮАНРШ ТЮИК, ЯФЮРШИ Я ХЯОНКЭГНБЮМХЕЛ bzip2

нОХЯЮМХЕ

ПЕЯСПЯ bzopen ( ЯРПНЙЮ filename, ЯРПНЙЮ mode)

нРЙПШБЮЕР ТЮИК bzip2 (.bz2) ДКЪ ВРЕМХЪ ХКХ ГЮОХЯХ. filename ОСРЭ Й ТЮИКС. mode ОЮПЮЛЕРП ЮМЮКНЦХВМШИ НДМНХЛ╦ММНЛС ОЮПЮЛЕРПС ТСМЙЖХХ fopen() (`r' -- ВРЕМХЕ, `w' -- ГЮОХЯЭ, Х Р.Д.).

оПХ НЬХАЙЕ НРЙПШРХЪ ТСМЙЖХЪ БНГБПЮЫЮЕР FALSE, ХМЮВЕ НМЮ БНГБПЮЫЮЕР СЙЮГЮРЕКЭ МЮ НРЙПШРШИ ТЮИК.

Пример 1. оПХЛЕП ХЯОНКЭГНБЮМХЪ bzopen()

<?php
$bz
= bzopen("/tmp/foo.bz2", "r");

$decompressed_file = '';
while (!
feof($bz)) {
    
$decompressed_file .= bzread($bz, 4096);
}
bzclose($bz);

print(
"The contents of /tmp/foo.bz2 are: " );
print(
"\n<br>\n" );
print(
$decompressed_file );
?>

яЛ. РЮЙФЕ bzclose().


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ