Export to csv adding html to file

I have a similar process to output all email addresses from the database into a downloadable txt file. It looks like this: $xoutput = show_subscriber_list(); $xfile = fopen(‘xsubscriber.txt’ , “w”) or die(“Unable to open file!”);; fwrite($xfile,$xoutput); fclose($xfile); $filename=”xsubscriber.txt”; // of course find the exact filename…. header(‘Pragma: public’); header(‘Expires: 0’); header(‘Cache-Control: must-revalidate, post-check=0, pre-check=0’); header(‘Cache-Control: private’, … Read more