phpdesktop chrome-不适用于php中的标头
我有一个PHP文件,每当在PHPphpdesktop chrome(APP)中运行一个文件时,我就会看到下面的内容,我的文件中只有以下代码phpdesktop chrome-不适用于php中的标头,php,phpdesktop,Php,Phpdesktop,我有一个PHP文件,每当在PHPphpdesktop chrome(APP)中运行一个文件时,我就会看到下面的内容,我的文件中只有以下代码 header("Content-Type: application/xls"); header("Content-Disposition: attachment; filename=filename.xls"); header("Pragma: no-cache"); header("Expires: 0"); 下面是我的错误代码 Warning: Can
header("Content-Type: application/xls");
header("Content-Disposition: attachment; filename=filename.xls");
header("Pragma: no-cache");
header("Expires: 0");
下面是我的错误代码
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\abc\www\backend\check.php:2)
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\abc\www\backend\check.php:3)
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\abc\www\backend\check.php:4)
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\abc\www\backend\check.php:5)
尝试插入
ob_start()代码>在第一次之后,查看这篇文章,得到相同的警告。