header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
	header('Cache-Control: must-revalidate');
	header('Expires: 0');
	header('Pragma: public');
	header('Content-Disposition: attachment; filename="' . $fileName.'.'.$fileExtension . '"');	
	
	echo $file;
	
	if (ob_get_contents() || ob_get_length()) {
	  ob_end_clean(); //or ob_end_flush();
	}

	exit();

如果内容$file是 base64 编码,则应更改echo $fileecho base64_decode($file);

SQL 的 FIND_IN_SET 是否有替代方案
怎么提升MySQL 性能 索引