aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-09-03 06:49:42 -0400
committerPaul Duncan <pabs@pablotron.org>2018-09-03 09:54:51 -0400
commita9a5749e6ecbd25ce220daa5a02aec4ba222ccd5 (patch)
treeecfd96b611a9f9b22d7c2040326e805be6b49307
parent50b7a1e8d2ab53ab08a84a704c1f4332756bcb2b (diff)
downloadzipstream-php-a9a5749e6ecbd25ce220daa5a02aec4ba222ccd5.tar.bz2
zipstream-php-a9a5749e6ecbd25ce220daa5a02aec4ba222ccd5.zip
fix path in example
-rw-r--r--examples/02-add_file_from_path.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/02-add_file_from_path.php b/examples/02-add_file_from_path.php
index 3b73754..012d50c 100644
--- a/examples/02-add_file_from_path.php
+++ b/examples/02-add_file_from_path.php
@@ -6,7 +6,7 @@ require_once __DIR__ . '/../src/ZipStream.php';
use Pablotron\ZipStream\ZipStream;
# set source path of local file
-$src_path = __DIR__ . '/02-add_file_from_path.php';
+$src_path = __FILE__;
# create the output archive named "example.zip"
$zip = new ZipStream('example.zip');