PHP » GoLang |
login |
register |
about
|
GoLang ZipArchive::addFile
request it (415)
GoLang replacement for PHP's ZipArchive::addFile
[edit | history]
ZipArchive::addFile(PHP 5 >= 5.2.0, PHP 7, 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 add
<?php Notes
|
more
Recently updated
more
Most requested
more
Last requests
|