Re: how to use pclzip class
| From: | DvDmanDT | Date: | Sat, 25 Oct 2003 09:45:41 +0000 |
| Subject: | Re: how to use pclzip class | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167534@lists.php.net to get a copy of this message | ||
// -------------------------------------------------------------------------
-------
// Function : PclZip()
// Description :
// Creates a PclZip object and set the name of the associated Zip
archive
// filename.
// Note that no real action is taken, if the archive does not exist it
is not
// created. Use create() for that.
// -------------------------------------------------------------------------
-------
Example:
$zipfile="uploaded.zip";
$zip=new PclZip($zipfile);
$file_list= $zip->listContent();
$file_list[$index]
-> ["filename"] (not sure)
-> ["stored_filename"] (filename in archive)
-> ["size"] (uncompressed size)
-> ["compressed_size"] (name says it all)
-> ["index"] (index in archive)
-> ["mtime"] (last mod)
$zip->extractByIndex($index_to_extract,"./folder_to_extract_into/");
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
##########################
Please, if you are using windows, you may be infected by Swen. Please go
here to find out more:
http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen
http://securityresponse.symantec.com/avcenter/venc/data/w32.swen.a@mm.html
##########################
"David T-G" <davidtg-php@justpickone.org> skrev i meddelandet
news:20031025063812.GJ9710@justpickone.org...