I'm completely telling why this is not working. help! for $ archive If none works, check if your server is Linux or not. If its Linux you can run the unzip command to open the file through the PHP system / exec function. I.e To remove a specific file, you can see man docs for unzip. Due to the server parameter zip library, it does not work as often as it is expected in cases that I come back to the Linux command. $ archive = "x.zip"; $ Zip = new zip archive (); $ Res = $ zip- & gt; Open ($ Collection); If ($ res === 'TRUE') {$ unzip_success = $ zip- & gt; ExtractTo ('/ temp /', "inscriptions.txt") $ zip- & gt; Close (); }
system ("unzip archive.zip");
Comments
Post a Comment