Jump to content

hello guys im having some zip file woes,


mrheff

Recommended Posts

Hey guys, this site has helped me beyonf beleif in the furthering of a new skill, but the time has come where i have finally gotten stuck and had to bite the bullet and its time to ask for outright help,

basically i am trying to make a small gallery system, part of this system is a bacth upload to watermarking page, now ive managed the basic upload and the watermarking all ok, i have also managed dynamic thumbnails (will this be too server heavy on a busy site?)

The trouble is unzipping the uploaded files, ive gone through many discussion boards to  no avail do yhou think you can spare five mins to help me out?

 

I want to use the unzip.lib from phpmyadmin but i cant call it correctly,

I want o unzip "batch.zip" in "root/batch/" from a page in the root.

everyzipfile uploaded is renamed to batch.zip so only one can be processed to the watermarking stage, but thats another story.

 

Thanks guys please spare this a moment of your time.

A greatful geek

also i found anbother lib called pclzip.lib

should i post thes up with me query?? or justt try to find the re3avant part?

Link to comment
https://forums.phpfreaks.com/topic/40340-hello-guys-im-having-some-zip-file-woes/
Share on other sites

YO,  found me answer,

 

include('pclzip.lib.php');

  $archive = new PclZip('batch/batch.zip');

  if ($archive->extract(PCLZIP_OPT_PATH, 'batch/',

                        PCLZIP_OPT_REMOVE_PATH, 'install/release') == 0) {

    die("Error : ".$archive->errorInfo(true));

  }

 

using the linrary available at

 

http://www.phpconcept.net/pclzip/index.en.php

 

It took me long enought to  see the documentation, but its all there and nice n easy too,,, I hope that this helps anyone in need.

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.