Jump to content

Archived

This topic is now archived and is closed to further replies.

joecooper

Download link without giveing it out

Recommended Posts

how can i let someone download somthing from my server, without them finding out the exact download link. it can be done via a php script, but no idea how to do this. any ideas?

Share this post


Link to post
Share on other sites
A PHP script can be set up to feed the user a file download INSTEAD OF a web page. Set the content type with the header() function. Then use PHP to open the file on the local machine, read it in and output it to the user.

Share this post


Link to post
Share on other sites
[a href=\"http://www.onlamp.com/pub/a/php/2002/12/05/one_time_URLs.html\" target=\"_blank\"]http://www.onlamp.com/pub/a/php/2002/12/05..._time_URLs.html[/a]

When you want to give out a URL that only works for one download - no matter how many people know the URL

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.