Hi, I'm trying to make a downloadable CVS file on the fly without making a file on the server. Any suggestions of how to do this? I have all of the data stored in a variable $data. The ASP code to do it is:
Response.ContentType = "text/CSV"
Response.AppendHeader("Content-Disposition", "attachment; filename=" &
sFileName)
Response.Write...
Response.Write...
I know that I need to set the headers like this:
header('Content-type: text/CSV');
header('Content-Disposition: attachment; filename="asdf.cvs"');
But I'm not sure how to write to the file. Thanks for any help.