class_mcCsv.inc.php 394 Bytes
<?php
class mcCsv {
	public static function exportCsv($param_xml,$param_name){

		$cut_Array=explode('CUT_VALUE_FOR_NOT_THE_HEADER',$param_xml);

		//file_name
		$var_filename = 'export_'.$param_name.'.csv';

		// Header senden
		header("Content-Disposition: attachment; filename =".$var_filename);
		header("Content-Type: text/plain");

		// 	Datei ausgeben
		echo trim($cut_Array[1]);
	}
}
?>