You are here: Re: Download a file once « All PHP « IT news, forums, messages
Re: Download a file once

Posted by Sanders Kaufman on 01/17/07 02:29

Arjen wrote:
> Sanders Kaufman schreef:

>> 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.


> Create a unique download id and match it against your stored(allowed) id's
> 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.


> use fpassthru('/files/file.exe');
> to send the file

IS fpassthru an undocumented feature or something?
I can't find anything about it.

 

Navigation:

[Reply to this 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

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