可以,程序编码是
第一种:header ('Content-type: application/x-msexcel'); 
       header ("Content-Disposition: attachment; filename=文件名.xls" );
      echo "名字\t联系方式\t流言内容\n";第二种:header("Content-type:application/vnd.ms-excel");
       header("Content-Disposition:filename=文件名.xls");
       echo "名字\t联系方式\t流言内容\n";