Function read_zip_file
Extract zip data. A functional copy of {@list read_zip_data()}.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Uses: PharData
Located at Sources/Subs-Package.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Uses: PharData
Located at Sources/Subs-Package.php
string |
$file |
Input filename |
string |
$destination |
Null to display a listing of files in the archive, the destination for the files in the archive or the name of a single file to display (if $single_file is true) |
boolean |
$single_file = false |
If true, returns the contents of the file specified by destination or false if the file can't be found (default value is false). |
boolean |
$overwrite = false |
If true, will overwrite files with newer modication times. Default is false. |
array |
$files_to_extract = null |
Specific files to extract |
mixed
|
If destination is null, return a short array of a few file details optionally delimited by $files_to_extract. If $single_file is true, return contents of a file as a string; false otherwise |