Re: [PHP] OT - How to code a link to download a file (program file)

2007-03-26 Thread Rahul Sitaram Johari
I was actually going through your blogspot on the subject and figured quite a few flaws in my code and am re-writing it as we speak. But believe it or not Richard, at the time I was researching this, and this is about 2 years back, I was provided the code that I have in this very mailing list ami

Re: [PHP] OT - How to code a link to download a file (program file)

2007-03-26 Thread Richard Lynch
On Mon, March 26, 2007 2:49 pm, Rahul Sitaram Johari wrote: > header("Content-Type: application/force-download"); header("Content-type: asfdsgfhrsiu/luhgireughinfibvn"); would work equally well as application/force-download > header("Content-Disposition: attachment; filename=".basename($F)); > @

Re: [PHP] OT - How to code a link to download a file (program file)

2007-03-26 Thread Rahul Sitaram Johari
Ave, To be honest, I don't think it's OT. I ran into a similar problem quite a while back, working on a File Manager application programmed in PHP/mySQL. I used the following 'fore-download' header in php which assured the user present with a Save Dialog box to download the file, and not open th

Re: [PHP] OT - How to code a link to download a file (program file)

2007-03-26 Thread Richard Lynch
On Sun, March 25, 2007 8:41 am, Lorin Lund wrote: > I have a web site where I have posted some programs I have written as > shareware. > > click here to download > > works great with mozilla but with MS IE it tries to display the > program. > What is the simplest way to set it up so that the user j

Re: [PHP] OT - How to code a link to download a file (program file)

2007-03-25 Thread Tijnema !
On 3/25/07, Lorin Lund <[EMAIL PROTECTED]> wrote: I have a web site where I have posted some programs I have written as shareware. click here to download works great with mozilla but with MS IE it tries to display the program. What is the simplest way to set it up so that the user just clicks o

[PHP] OT - How to code a link to download a file (program file)

2007-03-25 Thread Lorin Lund
I have a web site where I have posted some programs I have written as shareware. click here to download works great with mozilla but with MS IE it tries to display the program. What is the simplest way to set it up so that the user just clicks on the link and the program gets downloaded for stor