Hi,
I'm making a reports section to a web site. One reporting option is to have the report in a coma delimited file format.
When this is selected and the user runs the report, I want a dialog box to appear where the user can save the report locally to their computer.
My code runs the report and writes each line out into a temporary file.
Then I want to echo or push out the entire file from the web server to the user's browser.
I know -or think- I can use the header function....
If the file name is temp.csv, how would code look?,
Can someone tell me what the parameters are for the header function?
Do I have to 'open' the file first before I feed it to the header() function?
Thanks!!
Vmusic