作者love417 (一直在找一個人)
看板PHP
標題[請益] php在iis5上的執行
時間Thu Jan 5 12:17:09 2006
網頁建置是用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
推 wawawa:請看621 01/05 12:30
→ love417:可是我是用dreamweaver2004 而且在我的電腦可以執行 01/05 13:21
→ love417:編碼是big5 01/05 13:23