Hi!
I'have a special problem. I want to make a file downloader php, which hide from the downloaders, where the file comes from ( which server and path).
I wrote it, it supports local, http, and ftp.
The problem is, that the download can't be resumed.
Now, the main code is this.:
$fp = fopen($url, "r");
Header ("Content-Disposition: attachment; filename=\"$filename\"");
Header ("Content-type: application/octet-stream");
while (!feof($fp)) {
$buffer = fread($fp, 10240);
echo $buffer;
}
So, have someone some idea, how it can support resume or some other way to hide the real URL and path to the file?
Thanks for helpin'
Silver