From 7134bcf24c9e6a1b4c35f7c9ed5f3326e3be9e40 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 3 Sep 2018 09:53:44 -0400 Subject: remove old files --- test/index.php | 52 ---------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 test/index.php (limited to 'test/index.php') diff --git a/test/index.php b/test/index.php deleted file mode 100644 index ec89f76..0000000 --- a/test/index.php +++ /dev/null @@ -1,52 +0,0 @@ - 'this is a zip file comment. hello?' -)); - -# common file options -$file_opt = array( - # file creation time (2 hours ago) - 'time' => time() - 2 * 3600, - - # file comment - 'comment' => 'this is a file comment. hi!', -); - -# add files under folder 'asdf' -foreach ($files as $file) { - # build absolute path and get file data - $path = ($file[0] == '/') ? $file : "$pwd/$file"; - $data = file_get_contents($path); - - # add file to archive - $zip->add_file('asdf/' . basename($file), $data, $file_opt); -} - -# add same files again wihtout a folder -foreach ($files as $file) { - # build absolute path and get file data - $path = ($file[0] == '/') ? $file : "$pwd/$file"; - $data = file_get_contents($path); - - # add file to archive - $zip->add_file(basename($file), $data, $file_opt); -} - -# finish archive -$zip->finish(); - -?> -- cgit v1.2.3