Introduction – Extraction of Microsoft Cabinet files


require_once 'File/Cabinet.php';

// optional step: specify the command static property
File_Cabinet::$command '/usr/local/bin/cabextract';

$cabinet = new File_Cabinet('');

// Extract the contents of 1 file
$file_contents $cabinet->extract('a_file.txt');

// Extract the contents of multiple files (returns an array)
$file_contents $cabinet->extract(array('a_file.txt''another_file.txt'));

// Extract using a glob (returns a concatenated string)
$file_contents $cabinet->extract('*.txt');

// Extract to a directory
File_Cabinet (Previous) File_DICOM (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.