답변플리쓰 !!세션 ) 로그인 정보
답변플리쓰 !!세션 ) 로그인
관련링크
http://moct.pe.kr
162회 연결
본문
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/hosting_users/kws2397/www/head.php:5) in /home/hosting_users/kws2397/www/index.php on line 5
────────────────↑오류↑──────────────
─────────────head.php내용─────────────
<head><title>웹프로그래밍 ! 알수록 재밌는걸 !</title></head>
<center>
<embed src=./fla/head_menu.swf width=800 height=80>
</center>
<body bgcolor="000000"> <-5번쨰쭐
─────────────────────────────────
─────────────index.php내용─────────────
<?
include "head.php";
?>
<?
session_start(); <- 5번쨰쭐
if (empty ($_SESSION[user_id]))
{
die ("<br><center>");
die ("<a href=./join.php><img src=./img/main_join.gif border=0></a>");
die ("</center>");
die ("<center>");
die ("<form action=login_check.php method=post>");
die ("<font color=white>아이디 :</font><input type=text size=10 maxlength=30 name=user_id>");
die ("<font color=white>비밀번호 :</font><input type=password size=10 maxlength=30 name=pw>");
die ("<input type=submit value=로그인>;");
die ("</form>");
die ("</center>");
}
?><center>
<font color=white><?=$_SESSION[user_id]?>님 환영합니다 ^^</font><br><a href=./logout.php><img src=./img/logout.gif border=0></a></center>
<?
include "tail.php";
?>
─────────────────────────────────
index,head 5번쨰줄이 틀렸다는것같은데 제가보기엔 틀린게없는듯하거든요 ...
────────────────↑오류↑──────────────
─────────────head.php내용─────────────
<head><title>웹프로그래밍 ! 알수록 재밌는걸 !</title></head>
<center>
<embed src=./fla/head_menu.swf width=800 height=80>
</center>
<body bgcolor="000000"> <-5번쨰쭐
─────────────────────────────────
─────────────index.php내용─────────────
<?
include "head.php";
?>
<?
session_start(); <- 5번쨰쭐
if (empty ($_SESSION[user_id]))
{
die ("<br><center>");
die ("<a href=./join.php><img src=./img/main_join.gif border=0></a>");
die ("</center>");
die ("<center>");
die ("<form action=login_check.php method=post>");
die ("<font color=white>아이디 :</font><input type=text size=10 maxlength=30 name=user_id>");
die ("<font color=white>비밀번호 :</font><input type=password size=10 maxlength=30 name=pw>");
die ("<input type=submit value=로그인>;");
die ("</form>");
die ("</center>");
}
?><center>
<font color=white><?=$_SESSION[user_id]?>님 환영합니다 ^^</font><br><a href=./logout.php><img src=./img/logout.gif border=0></a></center>
<?
include "tail.php";
?>
─────────────────────────────────
index,head 5번쨰줄이 틀렸다는것같은데 제가보기엔 틀린게없는듯하거든요 ...
댓글 전체
session_start(); 이부분을
include "head.php"; 보다 더 위에 적으세요
include "head.php"; 보다 더 위에 적으세요
오류는 없어졋습니다만
index.php쪽에 die (" ~ "); <이부분들이 다출력이않되욥
index.php쪽에 die (" ~ "); <이부분들이 다출력이않되욥