Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solve this if You can
02-14-2015, 07:55 PM (This post was last modified: 02-14-2015 07:56 PM by devilx.)
Post: #1
Solve this if You can
M tryng to make Zip file

Code:
<?php
// this coding by me

$d = './Android Zone/Android_Apps';
$a = scandir($d);
$expload = "|";
$p= 'files/Android Zone/Android_Apps/';
$all = $expload.$p;
$impd = implode($all, $a);
$files = explode($expload, $impd);

// I found on googole
$zip = new ZipArchive();
$zip_name = "appz.zip";
if($zip->open($zip_n­­ame, ZIPARCHIVE::CREATE)!­­==TRUE){
$error .= "* Sorry ZIP creation failed at this time";
}

foreach($files as $file){
$zip->addFile($file)­­;
}



echo "donnnnnnnnnnnne....­­... yuuuu ";

print_r($impd);
echo '<br/>';

?>
Find all posts by this user
Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)