PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Rar 関数> <定義済み定数
Last updated: Fri, 29 Aug 2008

view this page in

例1 Rar 拡張モジュールの概要

<?php

$rar_file 
rar_open('example.rar') or die("Rar アーカイブをオープンできません。");

$entries rar_list($rar_file);

foreach (
$entries as $entry) {
    echo 
'ファイル名: ' $entry->getName() . "\n";
    echo 
'圧縮時のファイルサイズ: ' $entry->getPackedSize() . "\n";
    echo 
'展開後のファイルサイズ: ' $entry->getUnpackedSize() . "\n";

    
$entry->extract('/dir/extract/to/');
}

rar_close($rar_file);

?>

この例は Rar アーカイブファイルをオープンし、 指定したディレクトリに個々のファイルを展開します。



add a note add a note User Contributed Notes
There are no user contributed notes for this page.

Rar 関数> <定義済み定数
Last updated: Fri, 29 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites