[請益] ob_start 問題

看板PHP作者 (煉)時間12年前 (2014/01/22 12:24), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
因為使用 session 如果使用者不是從第一頁登入 我要更新 session 所以寫了一段判斷 if (....) { function Load_dev(){ exit(header('Location: http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])); } include '../aaa/globals.php'; include '../aaa/dev.php'; ob_start("Load_dev"); ob_end_flush(); } 但是 第一次進入都換產生 Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0 這個問題、不知道有哪位大大知道是為什麼 並且應該如何解決嗎? -- 等這一陣子忙完........ 就可以忙下一陣子了!!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.173.48.133
文章代碼(AID): #1ItqVv-O (PHP)
文章代碼(AID): #1ItqVv-O (PHP)