CI_Zip::archive()

archive($filepath)

Parameters:
  • $filepath (string) – Path to target zip archive
Returns:

TRUE on success, FALSE on failure

Return type:

bool

Writes the Zip-encoded file to a directory on your server. Submit a valid server path ending in the file name. Make sure the directory is writable (755 is usually OK). Example:

$this->zip->archive('/path/to/folder/myarchive.zip'); // Creates a file named myarchive.zip
doc_CodeIgniter
2016-10-15 16:32:08
Comments
Leave a Comment

Please login to continue.