NO_COMPRESSION
NO_COMPRESSION
ZIP code to indicate compression type is no compression used
Used to extract files from an initial segment or a fragment of a ZIP Archive.
__construct(string $zip_string)
Sets up a PartialZipArchive so that files can be extracted from it.
To this it populates the two field variables @see $zip_directory and @see $zip_filenames. Offsets used in the code for extracting various fields out of a zip archive local file header were gotten from https://en.wikipedia.org/wiki/ZIP%28file_format%29 Note the code for the constructor justs splits the whole string into parts on the string @see LOCAL_FILE_HEADER. It doesn't bother to try to use the zip archive's directory (which might not be in the portion of this zip archive given). It is possible for a file contained in archive to actual have within it the string LOCAL_FILE_HEADER, in which case that file would be screwed up by our approach.
string | $zip_string | a substring of a zip archive file |
getFromName(string $file_name) : mixed
Returns from the PartialZipArchive the uncompressed contents of the provided path/filename if found, and false otherwise.
string | $file_name | contains complete path and file_name of afile |
uncompressed file contents if found and extractable, false otherwise