슈퍼관리자 추가할때요...(도와주세요)

관리자님이 알려주신대로 (맞나?)
 
sadm.php 란 파일을 extend 폴더안에 넣고 sadm.php 파일 안에 내용은
 
<?
// 최고관리자
if ($member[mb_id] == 'sungdam') $is_admin = 'super';
 
// 그룹관리자
if ($gr_id == 'heimang21')
{
    if ($member[mb_id] == 'sungdam') $is_admin = 'group';
}
 
// 게시판관리자
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
 
이줄이더라고요....
 
왜그러는 건가요??  뭔가르 제가 잘못한건가요??
 
빠른답변 부탁드립니다.~
|

댓글 2개

헤더 상위에 문자열또는 공백이 오면 나는 오류네요
현재 헤더부분이 최상위인지 확인하세요
좋은하루되세요
감사합니다.~~~
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
18년 전 조회 2,164
18년 전 조회 1,715
18년 전 조회 3,266
18년 전 조회 1,514
18년 전 조회 1,726
18년 전 조회 1,547
18년 전 조회 1,512
18년 전 조회 1,261
18년 전 조회 1,461
18년 전 조회 1,565
18년 전 조회 1,189
18년 전 조회 1,507
18년 전 조회 2,050
18년 전 조회 1,857
18년 전 조회 1,043
18년 전 조회 1,512
18년 전 조회 2,205
18년 전 조회 1,507
18년 전 조회 1,448
18년 전 조회 1,229
🐛 버그신고