Sanders Kaufman schreef:
Quote:
Arjen wrote: Quote: |
>Sanders Kaufman schreef:
| > Quote: Quote:
>>Have the Download.php file delete, move or rename the file.
>>Then the message will have the added virtue of being true.
| >>
>Not a good idea on a busy website
| >
Why? That seems nice and QUICK.
|
yup it does for a single file and a single user.
But if you need a lot of unique download files you dont want to recreate
and delete the same file over and over again.
Quote:
Quote:
>Create a unique download id and match it against your stored(allowed)
>id's
| |
Quote:
Quote: |
>link to the file download.php?id=<my_dl_id>
| >
>
Gosh, that seems like an awful lot more processing power than just a
simple delete.
|
You are repeating ur first point wich is valid for some, but not ll
situations
Quote:
> Quote:
>use fpassthru('/files/file.exe');
>to send the file
| >
IS fpassthru an undocumented feature or something?
I can't find anything about it.
|
Come to think about it .. readfile() would be better but fpassthru would
work
RTFM :-)
http://www.php.net/manual/en/function.fpassthru.php
--
Arjen
http://www.hondenpage.com