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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.