国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

header - PHP導(dǎo)出EXCEL文件時(shí)總是自動(dòng)打開,請(qǐng)問(wèn)如何防止?
PHPz
PHPz 2017-04-10 14:57:43
0
1
454

PHP導(dǎo)出EXCEL文件時(shí)總是自動(dòng)打開,請(qǐng)問(wèn)如何防止?

    header("Content-Type:   application/vnd.ms-excel; charset=utf-8");
    header("Content-Disposition: attachment; filename=$outputFileName");
    header("Expires: 0");
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header("Cache-Control: private", false);
    $xlsWriter->save("php://output");
PHPz
PHPz

學(xué)習(xí)是最好的投資!

reply all(1)
Ty80

改成

header('Content-Type: application/octet-stream');
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template