HI All
My problem is this. I am querying a database and then writing the results to a tab delimited file. That works and is fine. But i would like to be able to allow the user to download the file to their local machine.
As i have put an .xls extension on the file then it open perfectly in excel.
How do i go about downloading the file ?
I have a download page which contains the following code
Header("Content-disposition: attachment; filename=\"$filename\"");
Header("Content-type: application/download");
This is fine in that it brings up the download box but when i open the file locally it's empty !!!
ANyone got any ideas
Many thanks guys