multisession download
| From: | Koala) | Date: | Fri, 03 Feb 2006 07:54:36 +0000 |
| Subject: | multisession download | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-229795@lists.php.net to get a copy of this message | ||
Hello,
I have a little strange question.
Let say if I have a file "/home/user/somefile.jpg"
I wanted to output this file from script, I wrote a little script:
------------------------------------------------
<?php
// open and pass the file out
$handle = fopen($this->filedata['filepath'], "rb");
while (!feof($handle)) {
$buffer = fread($handle, 4096);
echo $buffer;
}
fclose($handle);
?>
------------------------------------------------
It works !!!
But if I use a download accerlator to download this path, I can only
open 1 download session. Is there any way to pass a file out so one
can download the file with a multi-session download manager?
Thanks
Koala Yeung