zip - ZipArchive in PHP does not unzip file -



zip - ZipArchive in PHP does not unzip file -

here code use

<?php $zip = new ziparchive; $res = $zip->open('file.zip'); if ($res === true) { $zip->extractto('myextractdir/'); $zip->close(); echo 'extracted'; } else { echo 'failed'; } ?>

it outputs extracted, no files show up. file zip file..

please check file permissions. directory read-only?

if directory read-only, please set file permissions in either windows or linux.

php zip ziparchive

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -