Changeset 863


Ignore:
Timestamp:
Mar 31, 2015 2:07:29 PM (10 years ago)
Author:
quyenla
Message:

dowanload

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/www/deploy/20150304/application/modules/ajax/controllers/download.php

    r862 r863  
    8989                }
    9090            }
     91           
     92            $command="tar -C downloads -cvf ".$folder.".zip"." $download_file";
     93           
     94            exec($command);
    9195            $local_file = $folder.".zip";
    92             $download_file = $download_file.".zip";
    93             exec("zip -r ".$folder.".zip"." $folder/*");
     96            $download_file = $download_file.".zip"; 
     97           
    9498           
    9599        }
     
    121125        // close file stream
    122126        fclose($file);
    123 
     127            //unlink($local_file);
     128        if (isset($folder))
     129        {
     130            //exec("rm -fr $folder");
     131        }
    124132        exit;
    125133    }
Note: See TracChangeset for help on using the changeset viewer.