<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 8Warning: 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
이렇게 바꿔도 여전히 오류가 나네요. 코드에는 문제가 없어보이는데 왜 이러나요?