Providing file download

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
klarinetking
Forum Commoner
Posts: 59
Joined: Mon Jul 24, 2006 9:43 am

Providing file download

Post by klarinetking »

Hi all.

I'm trying to design a download system. Right now I'm having trouble actually presenting the user with the file.

I'm using a GET request to determine which file I need to serve. I pull all the required info (name) and the download path. Where I'm stuck is how to actually serve the user with that file.

If anyone could help, that would be appreciated.

Thanks,

klarinetking :)
RhapX
Forum Commoner
Posts: 30
Joined: Mon Dec 05, 2005 5:24 pm
Location: Seattle, Washington

Post by RhapX »

Can you please post the script you have made? It would make it much easier to help you.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

There's an example of downloading a file on the header() page.
Post Reply