[請益] Header問題..

看板PHP作者 (波力多)時間17年前 (2008/05/07 14:08), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/1
這是我遇到的問題.... Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\....\abc.php:18) in C:\AppServ\www\....\def.php on line 43 我程式碼執行是寫這樣 <? include ("por.php"); include ("abc.php"); include ("def.php"); abc_connect(); session_start(); html_begin ($title, $header); member_auth (); html_end (); ?> 進入member_auth()後 判斷登入者是否正確後再回傳 就在回傳時遇到上述問題 我有試過去掉html();這些 但是畫面就變成單調的框框登入畫面 有辦法保留住html的設定(body...那些) 又能讓header正確執行嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 130.86.214.45

05/07 19:51, , 1F
你的abc.php是不是有輸出甚麼?
05/07 19:51, 1F

05/08 04:52, , 2F
abc.php 輸出了html.begin() 和html_end();
05/08 04:52, 2F

05/08 04:53, , 3F
html_begin($title, $header);
05/08 04:53, 3F
文章代碼(AID): #188KT1Lb (PHP)
文章代碼(AID): #188KT1Lb (PHP)