作者fate9243 (大ing)
看板PHP
標題[請益] php 會員系統
時間Tue Oct 26 22:05:35 2010
發生這個錯誤
Warning: Cannot modify header information - headers already sent by (output
started at C:\AppServ\www\reg.php:1) in C:\AppServ\www\reg.php on line 48
這是原始碼
//if there is a row in the database, the username was found - can not add the
requested username
if($loginFoundUser){
$MM_qsChar = "?";
//append the username to the redirect page
if (substr_count($MM_dupKeyRedirect,"?") >=1) $MM_qsChar = "&";
$MM_dupKeyRedirect = $MM_dupKeyRedirect . $MM_qsChar
."requsername=".$loginUsername;
header ("Location: $MM_dupKeyRedirect");
exit;
拜託幫我看一下
我想好幾天了~"~
有人說是48行變數沒有$可是我有打阿...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.129.12.43
1F:→ GoodXD:Warning: Cannot modify header information - headers alr 10/26 22:24
2F:→ GoodXD:Google for answer 10/26 22:24
3F:→ higoodman:header() 前不能有任何輸出 10/26 22:49
4F:推 bobju:最典型就是UTF8 BOM的問題. 程式檔頭有你看不到的字元. 10/27 16:19
5F:推 Fallen:BOM 10/30 02:33