Changing the page type to CSV
// Tell the web client to expect a CSV file header('Content-Type: text/csv');