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:

1
$this->zip->archive('/path/to/folder/myarchive.zip'); // Creates a file named myarchive.zip
doc_CodeIgniter
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.