summaryrefslogtreecommitdiff
path: root/examples/01-simple.php
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-09-03 07:12:40 -0400
committerPaul Duncan <pabs@pablotron.org>2018-09-03 09:54:53 -0400
commiteca42d118e439dc0f3796650e8a68992d513f8ee (patch)
treed6f0a74dbe3a7cee63760afbb8f98505f80f8677 /examples/01-simple.php
parent5dda6b1011472e558e3fd9c744c2fd537528b115 (diff)
downloadzipstream-php-eca42d118e439dc0f3796650e8a68992d513f8ee.tar.bz2
zipstream-php-eca42d118e439dc0f3796650e8a68992d513f8ee.zip
add examples/{10,11,12,13}*php, add examples/*zip to .gitignore
Diffstat (limited to 'examples/01-simple.php')
-rw-r--r--examples/01-simple.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/01-simple.php b/examples/01-simple.php
index a01e0f8..7b4d450 100644
--- a/examples/01-simple.php
+++ b/examples/01-simple.php
@@ -6,9 +6,10 @@ require_once __DIR__ . '/../src/ZipStream.php';
use Pablotron\ZipStream\ZipStream;
# create the output stream
+# this will send the archive as an HTTP response by default
$zip = new ZipStream('example.zip');
-# add a file named "hello.txt" to output archive, containing
+# add "hello.txt" to output archive, containing
# the string "hello world!"
$zip->add_file('hello.txt', 'hello world!');