For a project, I would like to read a special file in the uploaded archive (zip file). The file always has the same name / relative path
Is it possible to remove this file only, or should I remove the entire collection?
Thanks
$ files = array ('/ a_path / titi .txt '); // Make a list of files to be removed here $ zip = new zipper; $ Res = $ zip- & gt; Open ('test_im.zip'); If ($ res === true) {$ zip- & gt; ExtractTo ('/ my / destination / dir /', $ files); $ Zip- & gt; near (); Echo 'ok'; } Else {echo 'unsuccessful'; }
No comments:
Post a Comment