Menu
Hi
I have a page where I generate a table with data. I want this data to be available as download (text file for example) without actually creating the file on disk first. I want to have a button for “Download this data”, and when clicked I want to perhaps display a page saying something like “you’re file is being downloaded”.
As I understand it, I can use
[code=php]header(‘Content-Disposition: attachment; filename=”report.txt”‘);
readfile(‘temp_file.txt’);
But will not everything I send, including my pretty HTML afterwards, be downloaded then?
Thanks
Lubox