Jump to content

php extract zip


Imaulle

Recommended Posts

Hello,

 

the following code is working on all but 2 of my servers I've tested it on. Anyone know the requirements for this to work correctly? I'm not having much luck. The 2 servers in question do have zlib installed. What else is required????

 

$zip = new ZipArchive;
$res = $zip->open('newzip.zip');
if($res===TRUE){
$zip->extractTo($install_folder);
$zip->close();
}else{
echo'failed';
}

Link to comment
https://forums.phpfreaks.com/topic/238932-php-extract-zip/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.