php-src/ext/zip/examples/comment.php

7 lines
177 B
PHP

<?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();