Posted by Marco Hauer on 06/13/05 14:18
"toedipper" <send_rubbish_here734@hotmail.com> wrote in message
news:LZKqe.7278$q46.1825@newsfe1-win.ntli.net...
> Hello,
>
> I want users to be able to download files on my website. The files will
> not be located on my site but on some other domain.
>
> I also want to be able to register the download first and then start it
> to the user.
>
> I imagine I would have a hyperlink on a page saying 'download here'
> This in turn would pass an id number to a page called download.php so
> the hyperlink would be "blah blah blah download.php?id=1234" etc.
>
> The download.php would also insert the date and time of the download
> into a my sql db.
>
> I can get this far myself but I am stuck now as how to actually then
> start the download once I've logged it.
>
> Any ideas?
>
> Thanks,
>
> td.
So if I understand right, you want to make something like a peer to peer
client?
So you need a table with the id of the file and the location of the file.
The another things like date and time can be better stored in a another
table.
I think this is only useful te get information about the downloads.
Note if you want that the user don't have a straight connection to the site
where is the file and they make connection over your site this will cause
much data traffic.
So I think the best solution is that they click the file and go to a second
page in a small window, where is the link to the file.
[Back to original message]
|