ZipArchive::addFile

Example

 bool ZipArchive::addFile ( string $filename [, string $localname = NULL [, int $start = 0 [, int $length = 0 ]]] ) 

Description

Adds a file to a ZIP archive from a given path.

Return Values

Returns TRUE on success or FALSE on failure.