Jump to content

Unzip script?


ballhogjoni

Recommended Posts

ok nevermind the problem was me. I was ftping the zip as ascii instead of binary. Once i made this change all worked just fine.

 

final script:

 

<?php
require('pclzip.lib.php');
$archive = new PclZip('wordpress-3.2.1.zip');

if ($archive->extract() == 0) {
    die("Error : ".$archive->errorInfo(true));
} else {
   unlink('wordpress-3.2.1.zip');
}

Link to comment
https://forums.phpfreaks.com/topic/246055-unzip-script/#findComment-1263696
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.