답변플리쓰 !!세션 ) 로그인

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번쨰줄이 틀렸다는것같은데 제가보기엔 틀린게없는듯하거든요 ...
|

댓글 2개

session_start(); 이부분을

include "head.php"; 보다 더 위에 적으세요
오류는 없어졋습니다만
index.php쪽에 die (" ~ "); <이부분들이 다출력이않되욥
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
16년 전 조회 989
16년 전 조회 2,249
16년 전 조회 1,571
16년 전 조회 1,546
16년 전 조회 1,548
16년 전 조회 994
16년 전 조회 849
16년 전 조회 2,407
16년 전 조회 991
16년 전 조회 1,547
16년 전 조회 1,431
16년 전 조회 1,064
16년 전 조회 3,930
16년 전 조회 2,367
16년 전 조회 1,487
16년 전 조회 1,722
16년 전 조회 1,739
16년 전 조회 2,698
16년 전 조회 1,555
16년 전 조회 1,177