@header("Content-Type: application/msexcel"); // ???????????? HTML @header('Content-Disposition: attachment; filename="filename.xls"'); ?>