This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Help Development [/deploy/install.run]
#2
RE: Help Development [/deploy/install.run]
PHP Code:
<?php
// Function to Unzip
function UnZip(){
 
   global $controller;
 
   $zip = new ZipArchive;
 
   $res $zip->open('modules/'.$controller->GetControllerRequest('URL''module').'/apps/filename.zip');
 
   if ($res === TRUE) {
        
$zip->extractTo('etc/apps/chive');
        
$zip->close();
        return 
true;
     } else {
         return 
false;
 
   }
}

// Un-Compressing The ZIP Archive

if (UnZip() == 'true'){
 
   echo "Unzip was successful";
 
   // do something else?
    } else {
    echo "Unzip was not successful";
    // exit or retry?
}
?>

Ripped this out of Sentastico, untested for your use.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:


Messages In This Thread
RE: Help Development [/deploy/install.run] - by TGates - 02-20-2015, 04:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
apt-get install mod_ssl ERROR CMs222 9 25 ,966 11-11-2022, 09:14 PM
Last Post: zustudios
Install guide wget over http? edavidf 5 9 ,493 12-15-2020, 07:07 PM
Last Post: jibranahmed
SSL install breaks apache service EGOSKY123 1 3 ,947 10-28-2020, 12:12 AM
Last Post: iraqiboy90

Forum Jump:


Users browsing this thread: 1 Guest(s)