Re: Download the whole directory
| From: | Tyler Longren | Date: | Sun, 21 Oct 2001 17:18:15 +0000 |
| Subject: | Re: Download the whole directory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71744@lists.php.net to get a copy of this message | ||
Hi Mark,
I don't think you can download an entire directory at once. You'll probably
have to get a directory listing, and download each file in that directory.
I'm not sure though.
Good luck,
Tyler
----- Original Message -----
From: "Mark Lo" <mark@3dsources.com>
To: <php-general@lists.php.net>
Sent: Sunday, October 21, 2001 12:16 PM
Subject: [PHP] Download the whole directory
> Hi,
>
> I know I can use the following code to download a single file, but how
> can I download the whole directory by using the following code. Please
> help.. (I am using PHP & Apache)
>
> <?php
> Header("Content-disposition: attachment; filename=\"Quickstep.doc\"");
> Header("Content-type: application/download");
> readfile($path/Quickstep.doc');
> ?>
>
> Thank you
>
> Mark
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net