Current Path : /proc/thread-self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/opt/alt/php55/usr/share/doc/pear/Archive/docs/ |
Current File : //proc/thread-self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/opt/alt/php55/usr/share/doc/pear/Archive/docs/tutorial_replacing.php |
<?php require_once 'tutorial_autoload.php'; date_default_timezone_set( "UTC" ); $archive = ezcArchive::open( "/tmp/my_archive.zip" ); $archive->truncate(); $filesToAppend[] = "/tmp/file1.txt"; $filesToAppend[] = "/tmp/file2.txt"; // The second parameter specifies prefix. The prefix is normally not included // in the archive. $archive->appendToCurrent( $filesToAppend, "/tmp/" ); ?>