Skip to content

Instantly share code, notes, and snippets.

@thejwalker thejwalker/Archive_Tar.php
Last active Sep 22, 2015

Embed
What would you like to do?
PEAR - PHP Archive_Tar
// REQUIRE THE PEAR PACKAGE - https://pear.php.net/package/Archive_Tar/
require_once 'Archive/Tar.php';
// SETUP THE ARCHIVE OUTPUT
$tar_object = new Archive_Tar($outpath, true);
$tar_object->setErrorHandling(PEAR_ERROR_PRINT);
// TAR $file
if($tar_object->create(array($file))) {
/* DO STUFF */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.