-1

I successfully uploaded an image below 70 kb on server. manage server cpanel view already set php.ini file

      max_upload =2000mb 
      max-exe-time = 300  
     max input time =600 

n php.ini file everything is ok.

My problem above 70kb image can't move temp directory i cant understand im using zend framework and java script using

Server Error log display following error

[Thu Jun 20 20:53:32 2013] [error] [client 59.164.48.115] PHP Fatal error:  Uncaught exception 'Zend_Controller_Response_Exception' with message 'Cannot send headers; headers already sent in /home/indepet/application/modules/cms/controllers/ProductController.php, line 1' in /home/indepet/library/Zend/Controller/Response/Abstract.php:321\nStack trace:\n#0 /home/indepet/library/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders(true)\n#1 /home/indepet/library/Zend/Controller/Action/Helper/Redirector.php(223): Zend_Controller_Response_Abstract->setRedirect('/index/home', 302)\n#2 /home/indepet/library/Zend/Controller/Action/Helper/Redirector.php(301): Zend_Controller_Action_Helper_Redirector->_redirect('/index/home')\n#3 /home/indepet/library/Zend/Controller/Action/Helper/Redirector.php(381): Zend_Controller_Action_Helper_Redirector->setGotoSimple('home', 'index', NULL, Array)\n#4 /home/indepet/library/Zend/Controller/Action/Helper/Redirector.php(502): Zend_Controller_Action_Helper_Redirector->gotoSimple('home', 'index', NULL, Array)\n#5 [internal fun in /home/indepet/library/Zend/Controller/Response/Abstract.php on line 321, referer: my site name

sometimes 100 and 100 above kb image file upload successfully again i was try image upload following error show

another doubt same code work other servers successfully im using Australia server

4

1 回答 1

0

此错误与上传大小无关,而是 Zend 尝试在已经呈现某些内容后打印标题(可能是因为出现错误并且它正在尝试重定向)。检查视图控制器中可能已输出的任何内容。文件末尾的空白很容易被忽略 - 事实上,由于?>这个原因,最好不要在文件末尾使用结束 PHP 标记。

于 2013-06-20T11:24:43.263 回答