Generate a CSV file [solved]
Posted: Mon Aug 30, 2010 2:43 pm
If one wanted to generate a CSV file from CMSMS content module, can you just use a UDT to resend the headers?
If not, how would one go about generating a CSV file? Just write it to the uploads folder and then give them a link?
Code: Select all
header(‘Expires: 0′);
header(‘Cache-control: private’);
header(‘Cache-Control: must-revalidate, post-check=0, pre-check=0′);
header(‘Content-Description: File Transfer’);
header(‘Content-Type: application/vnd.ms-excel’);
header(‘Content-disposition: attachment; filename=”file_name.xls”‘);