Jump to content


recursive (multiple) downloads

  • Please log in to reply
No replies to this topic

#1 dorjax

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 08 September 2006 - 10:19 PM

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

$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\"");

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!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users