File and downloading

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
gretzky56
Forum Newbie
Posts: 4
Joined: Sun Feb 24, 2008 1:35 pm

File and downloading

Post by gretzky56 »

I didnt know how to search of any possible solutions on the internet, so I will try to explain my probleme here.

:?: I will create a file that will hold data from a database, now I don't know how to make it that when the file is created it is offered to the user for download, and not just that the file is stored on the server.

Any tips will be very helpfull

cheer
User avatar
markusn00b
Forum Contributor
Posts: 298
Joined: Sat Oct 20, 2007 2:16 pm
Location: York, England

Re: File and downloading

Post by markusn00b »

Have a look at content disposition - header to force downloads.
gretzky56
Forum Newbie
Posts: 4
Joined: Sun Feb 24, 2008 1:35 pm

Re: File and downloading

Post by gretzky56 »

Yeah thats what I needed!

Thanks :wink:
Post Reply