PHPUnzip
[ class tree: PHPUnzip ] [ index: PHPUnzip ] [ all elements ]

Procedural File: PHPUnzip.class.php

Source Location: /PHPUnzip.class.php



Classes:

PHPUnzip
A stream based PHP 4 class for reading the contents of a ZIP Archive.
Supports no compression, deflate, and bzip storage modes.
Inspiration derived from the SimpleUnzip class contributed to phpMyAdmin by Holger Boskugel <vbwebprofi@gmx.de>


Page Details:

Project: PHPUnzip: A PHP class to read and extract zip archives in a stream based manner
File: PHPUnzip.class.php


This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

TODO:
* Add support for PKZip Encryption to extract password protected files
* Add support for other other encryption methods.
* Check for ZIP64 extensions.
* Add ability to read file from a string instead of a file.




Tags:

author:  drew010 <drew@drew-phillips.com>
version:  1.0 (June 21 2007)
copyright:  2007 Drew Phillips
link:  Online Documentation
link:  NeoProgrammers
link:  Download Latest Version
example:  PHPUnzip Example Source Code







E_BZIP_ERROR [line 96]

E_BZIP_ERROR = 9
An error occured in the bzdecompress function

Error Constants



[ Top ]



E_CRC_MISMATCH [line 81]

E_CRC_MISMATCH = 6
The extracted file's CRC did not match the stored CRC

Error Constants



[ Top ]



E_DATA_ERROR [line 71]

E_DATA_ERROR = 4
Unexpected or malformed data

Error Constants



[ Top ]



E_EMPTY [line 66]

E_EMPTY = 3
Empty zip file

Error Constants



[ Top ]



E_FILE_ENCRYPTED [line 76]

E_FILE_ENCRYPTED = 5
The file was encrypted with a method not supported by this library

Error Constants



[ Top ]



E_INFLATE_ERROR [line 91]

E_INFLATE_ERROR = 8
An error occured in the gzinflate function

Error Constants



[ Top ]



E_METHOD_NOT_SUPPORTED [line 86]

E_METHOD_NOT_SUPPORTED = 7
Data decompression method not supported

Error Constants



[ Top ]



E_NOOPEN [line 51]

E_NOOPEN = 0
Unable to open the zip file for reading

Error Constants



[ Top ]



E_NOTZIP [line 56]

E_NOTZIP = 1
The file did not appear to be a zip file

Error Constants



[ Top ]



E_NO_ERROR [line 46]

E_NO_ERROR = -1
No error has been encountered

Error Constants



[ Top ]



E_NO_FILE [line 100]

E_NO_FILE = 10
No ZIP file was opened

Error Constants



[ Top ]



E_UNEXPECTED_END [line 61]

E_UNEXPECTED_END = 2
Unexpected end of file encountered

Error Constants



[ Top ]



S_CD_EXTRA [line 185]

S_CD_EXTRA = 10

File Processing Constants



[ Top ]



S_CD_FCOMMENT [line 191]

S_CD_FCOMMENT = 11

File Processing Constants



[ Top ]



S_CD_FILENAME [line 179]

S_CD_FILENAME = 9

File Processing Constants



[ Top ]



S_CENTRAL_DIRECTORY [line 173]

S_CENTRAL_DIRECTORY = 8

File Processing Constants



[ Top ]



S_DATA_DESCRIPTOR [line 161]

S_DATA_DESCRIPTOR = 6

File Processing Constants



[ Top ]



S_END_CENTRAL [line 197]

S_END_CENTRAL = 12

File Processing Constants



[ Top ]



S_EOF [line 203]

S_EOF = 13

File Processing Constants



[ Top ]



S_ERROR [line 209]

S_ERROR = 14

File Processing Constants



[ Top ]



S_FILE_DATA [line 155]

S_FILE_DATA = 5

File Processing Constants



[ Top ]



S_FILE_EXTRA [line 149]

S_FILE_EXTRA = 4

File Processing Constants



[ Top ]



S_FILE_FILENAME [line 143]

S_FILE_FILENAME = 3

File Processing Constants



[ Top ]



S_FILE_HEADER [line 131]

S_FILE_HEADER = 1

File Processing Constants



[ Top ]



S_FILE_HEADER_DATA [line 137]

S_FILE_HEADER_DATA = 2

File Processing Constants



[ Top ]



S_FILE_PROCESSED [line 167]

S_FILE_PROCESSED = 7

File Processing Constants



[ Top ]



ZIPOPT_FILE_OUTPUT [line 109]

ZIPOPT_FILE_OUTPUT = 1
Output the contents of the zip file to individual files and folders based on the file structure in the zip

Processing Option Constants



[ Top ]



ZIPOPT_OUTPUT_PATH [line 119]

ZIPOPT_OUTPUT_PATH = 3
Only applies when ZIPOPT_FILE_OUTPUT is set, where to extract the files to (Must be writeable!)

Processing Option Constants



[ Top ]



ZIPOPT_OVERWRITE_EXISTING [line 114]

ZIPOPT_OVERWRITE_EXISTING = 2
Only applies when ZIPOPT_FILE_OUTPUT is set, whether or not to overwrite existing files.

Processing Option Constants



[ Top ]




Documentation generated on Sat, 23 Jun 2007 00:09:57 -0700 by phpDocumentor 1.3.1