'Cannot send headers; headers already sent in 的原因

Fatal error: Uncaught exception 'Zend_Controller_Response_Exception' with message 'Cannot send headers; headers already sent in D:\php\AppServ\www\MonitoringManager\application\services\HistorymsgService.php, line 1' in D:\php\AppServ\www\MonitoringManager\library\Zend\Controller\Response\Abstract.php:323 Stack trace: #0 D:\php\AppServ\www\MonitoringManager\library\Zend\Controller\Response\Abstract.php(341): Zend_Controller_Response_Abstract->canSendHeaders(true) #1 D:\php\AppServ\www\MonitoringManager\library\Zend\Controller\Response\Abstract.php(768): Zend_Controller_Response_Abstract->sendHeaders() #2 D:\php\AppServ\www\MonitoringManager\library\Zend\Controller\Front.php(992): Zend_Controller_Response_Abstract->sendResponse() #3 D:\php\AppServ\www\MonitoringManager\library\Zend\Application\Bootstrap\Bootstrap.php(97): Zend_Controller_Front->dispatch() #4 D:\php\AppServ\www\MonitoringManager\library\Zend\Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #5 D:\php\AppServ\www\MonitoringManager\public\inde inD:\php\AppServ\www\MonitoringManager\library\Zend\Controller\Response\Abstract.php on line323

这一堆原因只因<?php 开头前面有空格
/**

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值