[PHP] Download the whole directory

2001-10-21 Thread Mark Lo

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Download the whole directory

2001-10-21 Thread Tyler Longren

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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Download the whole directory

2001-10-21 Thread Andrew Brampton

U can either use something to zip the whole directory up, and then download
that 1 zip file.
OR
You could use some JScript or something to make X number of windows popup,
each with a file to be saved...

Other than that I'm not sure what u can do... Unless you generate GRX files
or similar things that are read by programs like Getright...

Just my comments
Andrew
- Original Message -
From: Mark Lo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, October 21, 2001 6: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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]