diff options
author | pabs <pabs@kylie.pablotron.org> | 2007-08-22 22:46:47 -0400 |
---|---|---|
committer | pabs <pabs@kylie.pablotron.org> | 2007-08-22 22:46:47 -0400 |
commit | ed65b93c15c0f0a1321b831cf51cab533da711dd (patch) | |
tree | cbc5c22ad8a62ac3aac6e4fe29bde2ac85b32afa /test | |
parent | e80c939e0ac58b40dcdbab35b9fd6d64b8a79b96 (diff) | |
download | zipstream-php-ed65b93c15c0f0a1321b831cf51cab533da711dd.tar.bz2 zipstream-php-ed65b93c15c0f0a1321b831cf51cab533da711dd.zip |
Added test script.
Diffstat (limited to 'test')
-rw-r--r-- | test/.index.php.swp | bin | 0 -> 12288 bytes | |||
-rw-r--r-- | test/index.php | 19 |
2 files changed, 19 insertions, 0 deletions
diff --git a/test/.index.php.swp b/test/.index.php.swp Binary files differnew file mode 100644 index 0000000..bc238dd --- /dev/null +++ b/test/.index.php.swp diff --git a/test/index.php b/test/index.php new file mode 100644 index 0000000..3eb4769 --- /dev/null +++ b/test/index.php @@ -0,0 +1,19 @@ +<?php + +require '../zipstream.php'; + +$files = array( + '/home/pabs/pablotron/files/url_scripts-0.1.0.tar.gz', + '/home/pabs/pablotron/files/url_scripts-0.1.1.tar.gz', + '/home/pabs/pablotron/files/url_scripts-0.1.2.tar.gz', + '/home/pabs/pablotron/files/url_scripts-0.1.3.tar.gz', +); + +$zip = new ZipStream('url_scripts.zip', true); + +foreach ($files as $file) + $zip->add_file(basename($file), file_get_contents($file)); + +$zip->finish(); + +?> |