download script
| From: | Martin | Date: | Tue, 21 Jan 2003 14:50:14 +0000 |
| Subject: | download script | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-132412@lists.php.net to get a copy of this message | ||
i need a script that make downloads from files but it must support resuming
for getright and download acelerator pro.
Thanks...
I have this classic download script , but does not support resuming
error_reporting(0);
header("Last-Modified: " . gmdate("D, d M Y H:i:s T",
filemtime($filename)));
header("Accept-Ranges: bytes");
header("Content-Length: " . filesize($filename));
header("Content-Disposition: attachment; filename=" . $download);
// header("Content-Type: application/octet-stream");
readfile($filename);
header("Connection: close");