I’m trying to create a plain text file download from data held on my SQL server.
Its simply going to be email addresses pulled from our marketing database.
On the download console i’m going to have a link that will open a new PHP page that will run the script that builds the data. This part works fine.
I’ve tried using a script that outputs the necessary headers to trigger a download in the browser. However, this would appear to be for physical files on the server.
I’m trying to effectivly create a plain text file download using a variable. I don’t want to create a physical file.
Does anyone have any ideas on what I can do?