TwistPHP Documentation

addFile

File path: dist/twist/Core/Helpers/Archive.helper.php
Namespace: Twist\Core\Helpers
Extends: Base

addFileAdd a file or directory to the current Zip Archive, the archive must be loaded or created using the 'load' or 'create' functions

Parameters

Name Type Description
$dirLocalFilestringn/a
[$dirZipBasePath = '']stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$dirLocalFile '/home/user/public_html/twist';
$dirZipBasePath '';

//Call the function addFile with the example vars
Twist::Archive() -> addFile($dirLocalFile$dirZipBasePath);