diff options
Diffstat (limited to 'ext/zip/examples/addpattern.php')
-rw-r--r-- | ext/zip/examples/addpattern.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/zip/examples/addpattern.php b/ext/zip/examples/addpattern.php new file mode 100644 index 0000000000..a1a9b12291 --- /dev/null +++ b/ext/zip/examples/addpattern.php @@ -0,0 +1,13 @@ +<?php +$z = new ZipArchive; +$z->open('a.zip', ZIPARCHIVE::CREATE); + +/* or 'remove_all_path' => 0*/ +$options = array('remove_path' => '/home/pierre/cvs/gd/libgd/tests', +'add_path' => 'images/', +); + +$found = $z->addPattern("/(\.png)$/i", "/home/pierre/cvs/gd/libgd/tests", $options); +var_dump($found); +$z->close(); + |