作者maplenote (貓奴一隻)
看板PHP
標題[請益] header()前輸出沒有warning訊息
時間Thu Dec 8 10:17:32 2011
遇到一個跟認知不同的問題
想要請教一下
版本是linux php5.3.2 自動安裝
在session_start()或header()前有echo都不會出現warning
且還能正常運作o.0???
有確定php.ini中設定
error_reporting = E_ALL
display_errors = On
若打mysql_connect() 也會出現warning警告
唯獨header()與session_start()都沒有
這是版本差異
還是設定檔的問題呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 210.61.241.210
1F:→ buganini:output buffer 12/08 11:34
2F:→ maplenote:我並沒有用相關ob_start()的函式 還是我誤解這關鍵字? 12/08 11:56
3F:→ maplenote:就很簡單的echo "123";後接session_start();沒warning 12/08 11:57
4F:→ MOONRAKER:好像有auto output buffer這種事情 12/08 12:02
5F:→ arrack:php ini 裡面的output buffer 看有沒有打開 12/08 12:26
6F:→ maplenote:解決了!!真的是php.ini裡面的output_buffering設定 12/08 13:07
7F:→ maplenote:太感謝了*0*~ 12/08 13:08