PHP ManualZipArchive::addFile(PHP 5 >= 5.2.0, PECL zip >= 1.1.0) ZipArchive::addFile — Adds a file to a ZIP archive from the given path Description
bool ZipArchive::addFile
( string
$filename
[, string $localname = NULL
[, int $start = 0
[, int $length = 0
]]] )Adds a file to a ZIP archive from a given path. Parameters
Return Values
Returns ExamplesThis example opens a ZIP file archive test.zip and add the file /path/to/index.txt. as newname.txt. Example #1 Open and extract
<?php Notes
![]() |
PHP-Index
New Tutorial entries
|