Download Script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
LadaKarford
Forum Newbie
Posts: 1
Joined: Sun Feb 13, 2011 2:05 am

Download Script

Post by LadaKarford »

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.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Download Script

Post by Jonah Bron »

Post Reply