게시판 즐겨찾기
편집
드래그 앤 드롭으로
즐겨찾기 아이콘 위치 수정이 가능합니다.
php 세션 에러 좀 도와주세요
게시물ID : programmer_10838짧은주소 복사하기
작성자 : mmmmm5
추천 : 0
조회수 : 362회
댓글수 : 3개
등록시간 : 2015/06/04 16:57:33
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>setcookie( ) 함수를 이용한 쿠키 생성</title>
</head>
<body>
<?
  session_start();
  $_SESSION['user']="test";
?>
</body>
</html>
이렇게 작성했는데

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\APM_Setup\htdocs\test.php:7) in C:\APM_Setup\htdocs\test.phpon line 8

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\APM_Setup\htdocs\test.php:7) inC:\APM_Setup\htdocs\test.php on line 8

계속 이 에러가 뜨네요.
session.save_path = "C:\APM_Setup\htdocs\session"
session.cache_limiter = public
이렇게 바꿔도 여전히 오류가 나네요. 코드에는 문제가 없어보이는데 왜 이러나요?
전체 추천리스트 보기
새로운 댓글이 없습니다.
새로운 댓글 확인하기
글쓰기
◀뒤로가기
PC버전
맨위로▲
공지 운영 자료창고 청소년보호