previousFile_Cabinet (Previous) (Next) File_DICOMnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Introduction

Introduction – Extraction of Microsoft Cabinet files

Synopsis

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

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

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

// 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
$cabinet->extract('a_file.txt''/path/to/extraction/dir');
?>

previousFile_Cabinet (Previous) (Next) File_DICOMnext

Download Documentation Last updated: Sun, 18 Oct 2009
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.