Function __global->create_zip_file
Definitions
sources/zip.php
- Create a ZIP file.Does not require any PHP or server zip support.Compression is not supported, only archiving - unless you have the PHP zip extension.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $outfile_path | PATH | No | No | required parameter | N/A | N/A | File to spool into; can be php://output given ZIP is a streamable format |
| $file_array | array | No | No | required parameter | N/A | N/A | A list of maps (data/full_path, name, time [optional]) covering everything to ZIP up |
Preview
Code (PHP)
/**
* Create a ZIP file.Does not require any PHP or server zip support.Compression is not supported, only archiving - unless you have the PHP zip extension.
*
* @param PATH $outfile_path File to spool into; can be php://output given ZIP is a streamable format
* @param array $file_array A list of maps (data/full_path, name, time [optional]) covering everything to ZIP up
*/
function create_zip_file(string $outfile_path, array $file_array)
* Create a ZIP file.Does not require any PHP or server zip support.Compression is not supported, only archiving - unless you have the PHP zip extension.
*
* @param PATH $outfile_path File to spool into; can be php://output given ZIP is a streamable format
* @param array $file_array A list of maps (data/full_path, name, time [optional]) covering everything to ZIP up
*/
function create_zip_file(string $outfile_path, array $file_array)
