File_Cabinet (Previous) (Next) File_DICOM

View this page in Last updated: Sun, 05 Oct 2008
English | French | Japanese | Plain HTML

導入

導入 -- Microsoft Cabinet ファイルの展開

構文


<?php
require_once 'File/Cabinet.php';

// オプション: 静的プロパティ command の設定
File_Cabinet::$command '/usr/local/bin/cabextract';

$cabinet = new File_Cabinet('cabinet.cab');

// 単一のファイルの取り出し
$file_contents $cabinet->extract('a_file.txt');

// 複数ファイルの取り出し (結果は配列で返されます)
$file_contents $cabinet->extract(array('a_file.txt''another_file.txt'));

// パターンマッチによる取り出し (結果はすべてを連結した文字列で返されます)
$file_contents $cabinet->extract('*.txt');

// ディレクトリへの展開
$cabinet->extract('a_file.txt''/path/to/extraction/dir');
?>

File_Cabinet (Previous) (Next) File_DICOM

Download Documentation Last updated: Sun, 05 Oct 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.