From eca42d118e439dc0f3796650e8a68992d513f8ee Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 3 Sep 2018 07:12:40 -0400 Subject: add examples/{10,11,12,13}*php, add examples/*zip to .gitignore --- examples/01-simple.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/01-simple.php') 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!'); -- cgit v1.2.3