PHP Zip File Extraction

Post any links or useful resources for phpBB3 "Olympus". Code development, or MOD related resource links, or any other useful resources regarding phpBB3
Forum rules
READ: StarTrekGuide.com Board Rules

Post any valuable resource for phpBB3. -- Anything that might assist MOD developers, or be useful to phpBB3 users.
Quote links or link to articles or resources.

NO Support Requests

Do NOT spam your own board or website


Before posting, please review Guidelines for listing sites as resources

PHP Zip File Extraction

Postby patrikStar » 22 May 2007, 23:08

Code: Select all
<?php
@include('pclzip.lib.php');
$newfile = 'file.zip';
$archive = new PclZip($newfile);
if (@$archive -> extract(PCLZIP_OPT_PATH, 'test/')) {
   echo "File extracted";
} else {
   echo "Error extracting file.";
}
?>


you can get the file it is including here: http://www.phpconcept.net/pclzip/index.php

This is what I am using for my autoupdate feature on my arcade room mod
patrikStar
Borg Drone
Borg Drone
 
Posts: 73
Joined: 16 May 2007, 20:47
Location: Las Vegas
Gender: Male
phpBB Knowledge: 7


Re: PHP Zip File Extraction

Postby eviL3 » 23 May 2007, 12:47

Cool, phpBB3 has some zip functions, maybe you can use them...
Image
User avatar
eviL3    
MOD Author
MOD Author
 
Posts: 1002
Joined: 05 Nov 2006, 08:14
Location: Cooking in the MODs kitchen
Gender: Male

Re: PHP Zip File Extraction

Postby SmokiestGrunl » 30 Jun 2008, 02:13

Is it posible to make a mod so you could upload a .zip and then it will attrach it all and then be able to use the files from the zip like an attachment?
SmokiestGrunl    
Crewman
Crewman
 
Posts: 8
Joined: 07 Apr 2008, 03:37
Gender: Male
phpBB Knowledge: 1


Return to phpBB3 Links and Resources

Who is online

Users browsing this forum: No registered users and 4 guests