[請益] php在iis5上的執行

看板PHP作者 (一直在找一個人)時間19年前 (2006/01/05 12:10), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/7 (看更多)
網頁建置是用appserv 可是放上server的時候卻跑出這樣的錯誤 Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\breeder\login.php:2) in C:\Inetpub\wwwroot\breeder\login.php on line 9 Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\breeder\login.php:2) in C:\Inetpub\wwwroot\breeder\login.php on line 10 server上 平台是2000 server版 php-4.3.11 mysql-4.0.24 下面附上原始檔 <?php mysql_connect ("localhost", "xxxxx", "xxxxx"); mysql_select_db("mytest"); $sql="select user,passwd from t7 where user='$userid' and passwd='$passwd'" ; $result=mysql_query($sql); $num=mysql_num_rows($result); if($num>0){ setcookie("username",$userid); header("location:frameset-1.htm"); }else{ echo" 沒$userid這個人!!"; }; ?> 直覺上應該是設定有錯 可是又不知道去改哪@@" -- 有時候 不是你拋棄了誰, 或是誰背叛了你, 而是時候到了., 自然分離. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.120.98.132

01/05 12:30, , 1F
請看621
01/05 12:30, 1F

01/05 13:21, , 2F
可是我是用dreamweaver2004 而且在我的電腦可以執行
01/05 13:21, 2F

01/05 13:23, , 3F
編碼是big5
01/05 13:23, 3F
文章代碼(AID): #13l9mxBK (PHP)
文章代碼(AID): #13l9mxBK (PHP)