Cannot modify header information - headers already send

liang | 2010-02-03 23:20:52 | PHP


在程式裡運用header會出現



“Warning: Cannot send session cookie - headers already sent...”



或者



“Cannot add/modify header information - headers already sent...”



將 php.ini 的 output_buffering 的off改成 4096



功能就正常了.



這裡有比較詳細的解釋,http://bbs.ecstart.com/thread-30347-1-4.html


========================================================================

相關文章

php : array write to file (陣列存放在檔案裡) AND parse_ini_file
SVN 只匯出該版號有異動的檔案
PHP5 連線 Oracle -- 初體驗
[ 轉 ] ubuntu下利用php+sphinx構建搜索引擎,在ubuntu 8.04 64位系統下測試通過
fsockopen fwrite 模擬瀏灠器動作
PHP 時間的加減
[ 轉 ] 利用javascript 取得 GET 變數
[ 轉 ] FLV 影片轉檔
Cannot modify header information - headers already send
[ 轉 ] 使用SWFTools把PDF轉成可以瀏覽的SWF檔案

意見反應

發表意見

*匿稱

電子郵件

*內容

.

 
'*'請輸入驗證碼:
'*'為必填欄位.(If content include "href" be Deny)