Download Script
Posted: Sun Feb 13, 2011 8:41 am
Hi,
I don't want to reveal the real download link to my users for some reason, so I place the file here, for example:
http://www.domain.com/download/secure-file.exe
Now I want to write a simple php code and link to this address, for example:
http://www.domain.com/download/download.php
Now this php script read that file and send it to user, without revealing the real file location to user.
Of course there is no resume download now, but I don't care.
Anyone knows a code snippet for that, or can help me to the right position?
I am a newbie in PHP.
Thank you.
I don't want to reveal the real download link to my users for some reason, so I place the file here, for example:
http://www.domain.com/download/secure-file.exe
Now I want to write a simple php code and link to this address, for example:
http://www.domain.com/download/download.php
Now this php script read that file and send it to user, without revealing the real file location to user.
Of course there is no resume download now, but I don't care.
Anyone knows a code snippet for that, or can help me to the right position?
I am a newbie in PHP.
Thank you.