Hi guys,
Mod : http://wiki.nginx.org/NgxZip
Git : https://github.com/evanmiller/mod_zip
I request your help for the use of this mod on my service.
I'm just confused how to use this mod properly and correctly, if you have 2 minutes, i will explain my situation and you can reply i hope :)
I've a website made with PHP, i host Seedbox (torrent client online) and my users want to download all directory in a ZIP, but it take me lot of disk space. Your mod is for me haha, but i don't know how tu use it properly.
I have made it with PHP, it work but the start of download is too long (to due php i think).
Is this possible ? Have you got an example for me ? it will be very sympathic :)
My PHP :
$zip_files=array();
$zip_files[0] = ( ''.hash_file("crc32b", $file_path_full, false).' /'.filesize($file_path_full).' '.$file_path_full.' '.end($name).'');
echo implode("\r\n", $zip_files) . "\r\n";
header('X-Archive-Files: zip');
header('Content-Disposition: attachment; filename=Down2BOX-'.time().'.zip');
header("Last-Modified: ".gmdate("D, d M Y H:i:s", $last_modified_time)." GMT");
header("Etag:". $etag);
I think it's dirty to use this mod like this. In ideally, i want to use this like :
http://domain.tld/zip/list_of_file
But how to pass the list of file in the URL ? Wich conf i must use ?
Lof of thanks in advance
Mod : http://wiki.nginx.org/NgxZip
Git : https://github.com/evanmiller/mod_zip
I request your help for the use of this mod on my service.
I'm just confused how to use this mod properly and correctly, if you have 2 minutes, i will explain my situation and you can reply i hope :)
I've a website made with PHP, i host Seedbox (torrent client online) and my users want to download all directory in a ZIP, but it take me lot of disk space. Your mod is for me haha, but i don't know how tu use it properly.
I have made it with PHP, it work but the start of download is too long (to due php i think).
Is this possible ? Have you got an example for me ? it will be very sympathic :)
My PHP :
$zip_files=array();
$zip_files[0] = ( ''.hash_file("crc32b", $file_path_full, false).' /'.filesize($file_path_full).' '.$file_path_full.' '.end($name).'');
echo implode("\r\n", $zip_files) . "\r\n";
header('X-Archive-Files: zip');
header('Content-Disposition: attachment; filename=Down2BOX-'.time().'.zip');
header("Last-Modified: ".gmdate("D, d M Y H:i:s", $last_modified_time)." GMT");
header("Etag:". $etag);
I think it's dirty to use this mod like this. In ideally, i want to use this like :
http://domain.tld/zip/list_of_file
But how to pass the list of file in the URL ? Wich conf i must use ?
Lof of thanks in advance