Reply to Re: Download a file once

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация