테스트 사이트 - 개발 중인 베타 버전입니다

그누보드 인클루드 땜에 html 문서가 안떠요 ㅠ (내용필)

사이트 head.php 파일이 메뉴를 포함하고 있어서,

모든 페이지에서 head.php 가 인클루드되요 ㅠ

그런데 일반 html 문서에서도 head.php 가 인클루드 되는데

<?

if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");

//print_r2(get_defined_constants());

// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.

$table_width = 1004;
?>

이게 head.php 상단에 있어서, 문서가 안뜨고 흰화면만 나오네요 ㅠㅠ

if문으로 일반 html 화면에서는 저 소스를 숨기고, 그누보드가 포함된 화면에서는 저 소스를 적용되게 할수 없을까요?

아니면 다른 방법있으신분 가르쳐주세요 ㅠㅠ

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 11개

일반 html문서에서는 저부분 그냥 삭제하고 작성하면 되지 않나요?
헌데 저부분은 head.sub.php화일만 불러오는거라 head.php화일은 안보이는데 좀 이상하네요.
메뉴가 head.sub.php에 작성되어있나보군요.
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

이부분때문이 아닐까요??
오멩, if (!defined("_GNUBOARD_")) exit; 이거 지우고 해보고 있었는데
많은 분이 답변 주셨네요 ㅎ
그런데 , 상단에 include 할 파일들을 못열어버리네요 ㅠ;;
오류 투성이 ㅠㅠㅠㅠㅠ
그냥 html 문서라서, $g4[path] 가 안먹는건가요? 그건 아닐텐데 우째 안열리죠?ㅠㅜㅜ

Warning: include_once(/head.sub.php) [function.include-once]: failed to open stream: No such file or directory in /home1/eguya/public_html/bbs/head.php on line 3

Warning: include_once() [function.include]: Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/eguya/public_html/bbs/head.php on line 3

Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/outlogin.lib.php) is not within the allowed path(s): (/tmp:/home1/eguya) in /home1/eguya/public_html/bbs/head.php on line 4

Warning: include_once(/lib/outlogin.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /home1/eguya/public_html/bbs/head.php on line 4

Warning: include_once() [function.include]: Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/eguya/public_html/bbs/head.php on line 4

Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/poll.lib.php) is not within the allowed path(s): (/tmp:/home1/eguya) in /home1/eguya/public_html/bbs/head.php on line 5

Warning: include_once(/lib/poll.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /home1/eguya/public_html/bbs/head.php on line 5

Warning: include_once() [function.include]: Failed opening '/lib/poll.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/eguya/public_html/bbs/head.php on line 5

Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/visit.lib.php) is not within the allowed path(s): (/tmp:/home1/eguya) in /home1/eguya/public_html/bbs/head.php on line 6

Warning: include_once(/lib/visit.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /home1/eguya/public_html/bbs/head.php on line 6

Warning: include_once() [function.include]: Failed opening '/lib/visit.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/eguya/public_html/bbs/head.php on line 6

Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/connect.lib.php) is not within the allowed path(s): (/tmp:/home1/eguya) in /home1/eguya/public_html/bbs/head.php on line 7

Warning: include_once(/lib/connect.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /home1/eguya/public_html/bbs/head.php on line 7

Warning: include_once() [function.include]: Failed opening '/lib/connect.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/eguya/public_html/bbs/head.php on line 7

Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/popular.lib.php) is not within the allowed path(s): (/tmp:/home1/eguya) in /home1/eguya/public_html/bbs/head.php on line 8

Warning: include_once(/lib/popular.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /home1/eguya/public_html/bbs/head.php on line 8

Warning: include_once() [function.include]: Failed opening '/lib/popular.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/eguya/public_html/bbs/head.php on line 8
if (!defined("_GNUBOARD_")) exit; 유지하시고
head.php를 인클루드하는 파일 상단에서
include_once("./_common.php"); 해주세요.
_common.php가 위 경로가 아닐 시 하나 만들거나 지정해주면 됩니다.
Warning: Cannot modify header information - headers already sent by (output started at /home1/eguya/public_html/bbs/sub_01.php:8) in /home1/eguya/public_html/common.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /home1/eguya/public_html/bbs/sub_01.php:8) in /home1/eguya/public_html/head.sub.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home1/eguya/public_html/bbs/sub_01.php:8) in /home1/eguya/public_html/head.sub.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /home1/eguya/public_html/bbs/sub_01.php:8) in /home1/eguya/public_html/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home1/eguya/public_html/bbs/sub_01.php:8) in /home1/eguya/public_html/head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home1/eguya/public_html/bbs/sub_01.php:8) in /home1/eguya/public_html/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home1/eguya/public_html/bbs/sub_01.php:8) in /home1/eguya/public_html/head.sub.php on line 38

찾아보니 헤더함수 오류라고 하는뎅 흠
머리아프네요 ㅠ
sub_01.php 파일을 열어 <? 로 시작하는 맨처음에 공백및 공라인을 없애주세요
그러면 해결 될 것인데

문제를 보아하니 단순히 이 것만 문제가 아닌 답변 달아준 분들의 문제를 하나씩 고쳤네요 -_-
답변 단 분들에게 모두 지급해야 할듯..... ㅎㅎ
headers already sent 요런오류는 UTF8저장시 BOM이 들어가서 ......
문서저장시 메모장으로 하지마시고 다른툴쓰실때도 BOM은 제거하시고 올려보세요.
휴!
include_once 문제였네요 ㅠ 수정했습니다. 답변주신 세분 감사합니다!

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440