Now, I'm not too keen on a webpage creating a local file and putting information into it...but the boss says do this, so I do it. (He did listen to my objections and then tell me he still wanted it, so he's aware)
What I'm trying to do is this: The user will be able to run a query of the database based on certain criteria, and the results will be output to the screen. I also want to be able to generate a CSV file if they've checked off a certain box. Putting the information into CSV format is no problem...the problem comes when I try to open a file on the user's computer and write to it.
I've been trying to use fopen and fputs to do this, but I keep getting errors. (Mainly the fputs returns invalid file handle) Any suggestions?
Whit