슈퍼관리자 추가할때요...(도와주세요) 정보
슈퍼관리자 추가할때요...(도와주세요)
본문
관리자님이 알려주신대로 (맞나?)
sadm.php 란 파일을 extend 폴더안에 넣고 sadm.php 파일 안에 내용은
<?
// 최고관리자
if ($member[mb_id] == 'sungdam') $is_admin = 'super';
if ($member[mb_id] == 'sungdam') $is_admin = 'super';
// 그룹관리자
if ($gr_id == 'heimang21')
{
if ($member[mb_id] == 'sungdam') $is_admin = 'group';
}
if ($gr_id == 'heimang21')
{
if ($member[mb_id] == 'sungdam') $is_admin = 'group';
}
// 게시판관리자
if ($bo_table == 'heimang21')
{
if ($member[mb_id] == 'sungdam') $is_admin = 'board';
}
if ($bo_table == 'heimang21')
{
if ($member[mb_id] == 'sungdam') $is_admin = 'board';
}
?>
이렇게 했거든요...
그랬더니
Warning: Cannot modify header information - headers already sent by (output started at /home/heimang21/public_html/home/extend/sadm.php:17) in /home/heimang21/public_html/home/head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/heimang21/public_html/home/extend/sadm.php:17) in /home/heimang21/public_html/home/head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /home/heimang21/public_html/home/extend/sadm.php:17) in /home/heimang21/public_html/home/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/heimang21/public_html/home/extend/sadm.php:17) in /home/heimang21/public_html/home/head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /home/heimang21/public_html/home/extend/sadm.php:17) in /home/heimang21/public_html/home/head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/heimang21/public_html/home/extend/sadm.php:17) in /home/heimang21/public_html/home/head.sub.php on line 38
에러가 나오고
에러나는 줄을 찾아가보니
32 : header("Content-Type: text/html; charset=$g4[charset]");
33 : $gmnow = gmdate("D, d M Y H:i:s") . " GMT";
34 : header("Expires: 0"); // rfc2616 - Section 14.21
35 : header("Last-Modified: " . $gmnow);
36 : header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
37 : header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
38 : header("Pragma: no-cache"); // HTTP/1.0
33 : $gmnow = gmdate("D, d M Y H:i:s") . " GMT";
34 : header("Expires: 0"); // rfc2616 - Section 14.21
35 : header("Last-Modified: " . $gmnow);
36 : header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
37 : header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
38 : header("Pragma: no-cache"); // HTTP/1.0
이줄이더라고요....
왜그러는 건가요?? 뭔가르 제가 잘못한건가요??
빠른답변 부탁드립니다.~
댓글 전체
헤더 상위에 문자열또는 공백이 오면 나는 오류네요
현재 헤더부분이 최상위인지 확인하세요
좋은하루되세요
현재 헤더부분이 최상위인지 확인하세요
좋은하루되세요

감사합니다.~~~