Re: [PHP] Re: Hidden File Downloads

2005-04-26 Thread Philip Hallstrom
This is what I do to "force" excel docs to be downloaded... Header("Content-Type: application/vnd.ms-excel"); This tells the browser that it's an Excel file. Header("Content-Disposition: attachment; filename=general-data.xls"); This tells Microsoft browsers (who I think made up all the stuff in thi

Re: [PHP] Re: Hidden File Downloads

2005-04-25 Thread Richard Lynch
On Mon, April 25, 2005 11:47 am, Philip Hallstrom said: >>> Does anybody know how to do this with php? I'm not sure how to find >>> the >>> file in the backend and kick it back to the user with the "Save As" box >>> popping up. I'm thinking maybe it has something to do with headers, >>> but >>> I

Re: [PHP] Re: Hidden File Downloads

2005-04-25 Thread Philip Hallstrom
Does anybody know how to do this with php? I'm not sure how to find the file in the backend and kick it back to the user with the "Save As" box popping up. I'm thinking maybe it has something to do with headers, but I'm not sure. Thanks. Stuart Usually when you send the header "application/octet