看板 PHP 關於我們 聯絡資訊
遇到一個跟認知不同的問題 想要請教一下 版本是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
buganini:output buffer 12/08 11:34
maplenote:我並沒有用相關ob_start()的函式 還是我誤解這關鍵字? 12/08 11:56
maplenote:就很簡單的echo "123";後接session_start();沒warning 12/08 11:57
MOONRAKER:好像有auto output buffer這種事情 12/08 12:02
arrack:php ini 裡面的output buffer 看有沒有打開 12/08 12:26
maplenote:解決了!!真的是php.ini裡面的output_buffering設定 12/08 13:07
maplenote:太感謝了*0*~ 12/08 13:08