[PHP] force download with header()

2002-12-08 Thread Patrick McKinley
i was reading about php.net looking for a way to force a download of a txt file, rather than the browser displaying the file. i ran into header() that seems to be able to accomplish it... but seeing as i'm very much a newbie at php, i can't seem to make this work if the file i want to download

Re: [PHP] force download with header()

2002-12-08 Thread Marco Tabini
Are you using Internet Explorer? Then it's a feature of IE--it ignores the disposition headers sent by your server because its registry tells it that PDF files must be viewed inline. There's a way around it, although it's a bit kludgy--I wrote a small article about it that you can find here (it's