????

Your IP : 52.14.148.63


Current Path : /opt/alt/php53/usr/share/doc/pear/Archive/docs/
Upload File :
Current File : //opt/alt/php53/usr/share/doc/pear/Archive/docs/tutorial_directories.php

<?php

require_once 'tutorial_autoload.php';
date_default_timezone_set( "UTC" );

$archive = ezcArchive::open( "/tmp/my_archive.zip" );
$archive->truncate();

$filesToAppend[] = "/tmp/directory/";
$filesToAppend[] = "/tmp/file.txt";

// The second parameter specifies prefix. The prefix is normally not included 
// in the archive.
$archive->appendToCurrent( $filesToAppend, "/tmp/" );

?>