[問題] 關於 php 的 session

看板FreeBSD作者時間21年前 (2004/09/08 17:02), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/5 (看更多)
我灌的版本是 php-4.3.8 在 configure 的時候有加上參數 --enable-session 但是為什麼在使用 session_start() 的時候出現以下兩個錯誤訊息: Warning: session_start(): Cannot send session cookie - headers already sent by (output started 以及 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started 我在 php.ini 的 register_global 有把 Off 改成 On 還是不行 請問這是怎麼回事嗎?! (ps: 其他相關 php 都 work) 謝謝!! 以下是我 phpinfo() session 相關的部分 ================================================================== Session Support enabled Registered save handlers files user Directive Local Value Master Value session.auto_start Off Off session.bug_compat_42 On On session.bug_compat_warn On On session.cache_expire 180 180 session.cache_limiter nocache nocache session.name PHPSESSID PHPSESSID session.save_handler files files session.save_path /tmp /tmp session.use_cookies On On -- ▁▂▁ 豬窩 pighouse.csie.net 來源:pighouse.csie.net ◣_____________________________◢ ● ● ◤ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄◥ 。。 豬言豬語:愛像風車一樣轉阿轉 如同我對你的愛戀轉阿轉 ˇ ◣_____________________________◢
文章代碼(AID): #11FigW00 (FreeBSD)
文章代碼(AID): #11FigW00 (FreeBSD)