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

来源:互联网 发布:数码煲仔饭的知乎 编辑:程序博客网 时间:2024/05/17 23:10

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 开头前面有空格
/**

原创粉丝点击