PHP » GoLang |
login |
register |
about
|
GoLang PharData::addFile
request it (399)
GoLang replacement for PHP's PharData::addFile
[edit | history]
PharData::addFile(PHP 5 >= 5.3.0, PHP 7, PECL phar >= 2.0.0) PharData::addFile — Add a file from the filesystem to the tar/zip archive DescriptionWith this method, any file or URL can be added to the tar/zip archive. If the optional second parameter localname is specified, the file will be stored in the archive with that name, otherwise the file parameter is used as the path to store within the archive. URLs must have a localname or an exception is thrown. This method is similar to ZipArchive::addFile(). Parameters
Return Valuesno return value, exception is thrown on failure. Examples
Example #1 A PharData::addFile() example
<?php See Also
|
more
Recently updated
more
Most requested
more
Last requests
|