cvs: peardoc /en/package/fileformats/file-cabinet intro.xml
| From: | David Sanders | Date: | Thu, 14 Feb 2008 06:21:30 +0000 |
| Subject: | cvs: peardoc /en/package/fileformats/file-cabinet intro.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-10478@lists.php.net to get a copy of this message | ||
shangxiao Thu Feb 14 06:21:30 2008 UTC
Added files:
/peardoc/en/package/fileformats/file-cabinet intro.xml
Log:
Initial checkin
http://cvs.php.net/viewvc.cgi/peardoc/en/package/fileformats/file-cabinet/intro.xml?view=markup&rev=1.1
Index: peardoc/en/package/fileformats/file-cabinet/intro.xml
+++ peardoc/en/package/fileformats/file-cabinet/intro.xml
<!-- $Revision: 1.1 $ -->
<refentry id="package.fileformats.file-cabinet.intro">
<refnamediv>
<refname>Introduction</refname>
<refpurpose>Extraction of Microsoft Cabinet files</refpurpose>
</refnamediv>
<refsect1 id="package.fileformats.file-cabinet.intro.synopsis">
<title>Synopsis</title>
<para>
<programlisting role="php">
<![CDATA[
<?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');
?>
]]>
</programlisting>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->