作者polito (波力多)
看板PHP
標題[請益] Header問題..
時間Wed May 7 14:07:56 2008
這是我遇到的問題....
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
推 Darkland:你的abc.php是不是有輸出甚麼? 05/07 19:51
→ polito:abc.php 輸出了html.begin() 和html_end(); 05/08 04:52
→ polito: html_begin($title, $header); 05/08 04:53