fputcsv Inserting HTML code into a csv file
问题 I have problem with writing csv file using fputcsv. Its putting the page html also into the csv file. Whats wrong with my code ? //Excel header header("Content-Disposition: attachment; filename=\"Delivery_Reports.csv\";" ); header("Content-type: application/vnd.ms-excel"); $out = fopen("php://output", 'w'); $flag = false; // $result = mysql_query("SELECT * FROM senderids ") or die('Query failed!'); //$sel="SELECT number as MobileNumber ,snum as Sender , msg as Subject ,crdate as Date ,status