|
Posted by Arjen on 01/16/07 12:06
Sanders Kaufman schreef:
> majik92@gmail.com wrote:
>> I want a user to download to download bec.exe from download.php. But,
>> the next time anyone accesses download.php, i want it to turn up a
>> Error 404 page or simply a sentence saying "sorry, this file is not
>> available". Could someone help me? Thanks
>>
>
> 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
Create a unique download id and match it against your stored(allowed) id's
link to the file download.php?id=<my_dl_id>
use fpassthru('/files/file.exe');
to send the file
--
Arjen
http://www.hondenpage.com
Navigation:
[Reply to this message]
|