Current location: Hot Scripts Forums » General Community » Script Requests » Extract Zip file in server


Extract Zip file in server

Reply
  #1 (permalink)  
Old 12-10-05, 07:46 PM
dave111 dave111 is offline
Wannabe Coder
 
Join Date: Jul 2003
Posts: 136
Thanks: 0
Thanked 0 Times in 0 Posts
Extract Zip file in server

Anyone know of a really simple php script which can extract a zip file into its current location.

(the same way that the Cpanel filemanager does)
Reply With Quote
  #2 (permalink)  
Old 12-10-05, 08:11 PM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
I just found this, so I have not used it, but it looks like it does what you want -
http://www.hotscripts.com/Detailed/41871.html
Reply With Quote
  #3 (permalink)  
Old 12-10-05, 10:38 PM
dave111 dave111 is offline
Wannabe Coder
 
Join Date: Jul 2003
Posts: 136
Thanks: 0
Thanked 0 Times in 0 Posts
Cool, but how do i actually use this?
Reply With Quote
  #4 (permalink)  
Old 12-10-05, 11:34 PM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
There is documentation on the author's web page, including an example to unzip all the contents of a file...

PHP Code:

<?php

  
require_once('pclzip.lib.php');
  
$archive = new PclZip('archive.zip');
  if (
$archive->extract() == 0) {
    die(
"Error : ".$archive->errorInfo(true));
  }
?>

Last edited by mab; 12-10-05 at 11:37 PM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload .xls file from client's machine to SQL Server table bubberz ASP.NET 0 08-09-05 02:40 PM
Force Download of a file on a different server. wiseman7687 PHP 9 07-26-05 01:37 AM
move files around an ftp server, with php file upload script? wapchimp PHP 2 12-19-04 07:27 AM
Server open file altafingar ASP.NET 1 10-20-04 12:12 AM
Creating a Zip file with PHP dannyallen PHP 3 07-01-04 08:47 AM


All times are GMT -5. The time now is 11:53 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.