From 2a4160e670f476cb797a812429ef622e8009343c Mon Sep 17 00:00:00 2001 From: pabs Date: Thu, 23 Aug 2007 03:52:30 -0400 Subject: Updated test/index.php. --- test/index.php | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'test/index.php') diff --git a/test/index.php b/test/index.php index 3eb4769..33e2fc5 100644 --- a/test/index.php +++ b/test/index.php @@ -1,18 +1,30 @@ 'this is a zip file comment. hello?' +)); +$file_opt = array( + 'time' => time() - 2 * 3600, + 'comment' => 'this is a file comment. hi!', +); + +# add files under folder 'asdf' +foreach ($files as $file) + $zip->add_file('asdf/' . basename($file), file_get_contents($file), $file_opt); + +# add same files again wihtout a folder foreach ($files as $file) - $zip->add_file(basename($file), file_get_contents($file)); + $zip->add_file(basename($file), file_get_contents($file), $file_opt); $zip->finish(); -- cgit v1.2.3