diff options
| author | Ondřej Surý <ondrej@sury.org> | 2014-01-28 10:57:59 +0100 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2014-01-28 10:57:59 +0100 |
| commit | 575107aad92a460051e02de029067359083542b9 (patch) | |
| tree | 462d4270312d11a5c064e151e3fdd2f671bd540b /ext/zip/examples/addpattern.php | |
| parent | 650fb41a77b3a24ab4130b05fff243b64b241877 (diff) | |
| download | php-575107aad92a460051e02de029067359083542b9.tar.gz | |
New upstream version 5.6.0~alpha1+dfsgupstream/5.6.0_alpha1+dfsg
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 000000000..a1a9b1229 --- /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(); + |
