Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/256.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
phpdesktop chrome-不适用于php中的标头_Php_Phpdesktop - Fatal编程技术网

phpdesktop chrome-不适用于php中的标头

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

我有一个PHP文件,每当在PHPphpdesktop chrome(APP)中运行一个文件时,我就会看到下面的内容,我的文件中只有以下代码

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()在第一次
之后,查看这篇文章,得到相同的警告。