Jump to content

recursive (multiple) downloads


dorjax

Recommended Posts

I am using the following code in a "download.php" file to download with success a file like "archive1.pdf"

[code]
<?php
$fichier = 'directory/archive1.pdf';
$nomFichier = 'archive1.pdf';
$tailleFichier = filesize($fichier);
header('Content-Type: application/octet-stream');
header("Content-Length: $tailleFichier");
header("Content-Disposition: attachment; filename=\"$nomFichier\"");
readfile($fichier);
?>
[/code]

BUT... from only one "download.php" file I would like  an extension of this code that can produce a recursive or multiple downloads (archive1.pdf + archive2.pdf...). Is it possible to do that in php? Please if yes a little code as example for me, I don't know php. Thanks!
Link to comment
https://forums.phpfreaks.com/topic/20179-recursive-multiple-downloads/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.