diff options
Diffstat (limited to 'ext/zip/examples/comment.php')
-rw-r--r-- | ext/zip/examples/comment.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/zip/examples/comment.php b/ext/zip/examples/comment.php new file mode 100644 index 0000000..90b37d3 --- /dev/null +++ b/ext/zip/examples/comment.php @@ -0,0 +1,6 @@ +<?php +$z = new ZipArchive; +$z->open('test_with_comment.zip'); +// Add "Foo Comment" as comment for the foo entry +$z->setCommentName('foo', 'Too Comment ' . time()); +$z->close(); |