Function read_zip_data
Extract zip data. .
If single_file is true, destination can start with * and / to signify that the file may come from any directory. Destination should not begin with a / if single_file is true.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Package.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Package.php
string |
$data |
ZIP data |
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 |
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 |