[請益] 關於header()
關於header()這個函式
在它之前不能有html或echo…
那如果我是從另一個頁面(已經使用header設定編碼utf-8,且有輸出html)
轉入目前頁面(如表單submit轉入),
這樣會造成錯誤嗎 ?
因為我目前就是在第二個頁面加入
header('Content-type: text/html;charset=utf-8')
結果造成輸出錯誤
Warning:
Cannot modify header information - headers already sent
by (output started at C:\xxx\xxx.php:1) in C:\xxx\xxx.php on line 2
--
───────────────────────────────────────
http://s-radio.whyza.net:8000/kusoayan.m3u
http://yantyped.blogspot.com <每天更新Pandora專用代理喔!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.110.82.96
推
12/14 21:14, , 1F
12/14 21:14, 1F
推
12/14 22:12, , 2F
12/14 22:12, 2F
推
12/14 22:38, , 3F
12/14 22:38, 3F
推
12/14 23:22, , 4F
12/14 23:22, 4F
推
12/15 00:04, , 5F
12/15 00:04, 5F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章