[請益] 轉碼後setcookie不斷出現錯誤
我在日文的網站下載了php的留言版程式來中文化(SJIS轉UTF-8)
全部的問題都已經排除只有setcookie一直出錯
錯誤碼如下:
Warning: Cannot modify header information - headers already sent by (output
started at /home/chingmeow/public_html/futaba/futaba.php:1) in
/home/chingmeow/public_html/futaba/futaba.php on line 601
Warning: Cannot modify header information - headers already sent by (output
started at /home/chingmeow/public_html/futaba/futaba.php:1) in
/home/chingmeow/public_html/futaba/futaba.php on line 612
問題是被標示錯誤的行數跟日文版是完全一樣的,而日文版不會出錯
Line 601:
setcookie ("pwdc", $c_pass,time()+7*24*3600);
Line 612:
header("Set-Cookie: namec=$c_name; expires=".gmdate("D, d-M-Y
H:i:s",time()+7*24*3600)." GMT",false);
請知道的人指點一下...謝謝m(_ _)m
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 125.229.6.46
→
10/28 18:20, , 1F
10/28 18:20, 1F
→
10/28 18:26, , 2F
10/28 18:26, 2F
→
10/28 18:27, , 3F
10/28 18:27, 3F
推
10/28 18:41, , 4F
10/28 18:41, 4F
→
10/28 18:42, , 5F
10/28 18:42, 5F
→
10/28 18:59, , 6F
10/28 18:59, 6F
→
10/28 19:05, , 7F
10/28 19:05, 7F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章
151
156