a

메인에 공지사항 출력..

질문답변보고 하라는대로 했는데도 안되네요..
하라는데로 했더니
Warning: include_once(../_common.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/palmaster/www/index.htm on line 2

Warning: include_once() [function.include]: Failed opening '../_common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/palmaster/www/index.htm on line 2

Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/palmaster/www/index.htm on line 3

Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/palmaster/www/index.htm on line 3

이렇게 오류가 납니다..

공지사항을 출력할 index.htm 파일은 그누보드 폴더 밖에있습니다.

그래서 그누보드 폴더안에 있는 파일을 전부 index.htm이 있는 폴더에 넣어봤는데
그땐 제대로 출력이 됫습니다. 하지만 그렇게 하니까 제 그누보드 관리자 홈피가 안들어가집니다

그리고

<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

이걸 index.htm에 넣으면 글씨색이 보라색인데 php 파일에 넣으면 색깔이 변합니다
이게 무슨 차이가 있는거 같긴한데 잘 모르겠습니다.

그리고 적용한 최신글 스킨 파일첨부해놧습니다.. basic_k 라는 스킨입니다.

제발 좀 도와주세요 ㅠㅠ

첨부파일

basic_k.zip (15.2 KB) 2회 2010-12-23 13:18
|

댓글 2개

index.htm파일 그누폴더 밖에 있으시면
거기에 _common.php 파일 만드셔서
<?
$g4_path = "./그누폴더명"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
일케 넣어주심되여~
감사합니다 ㅠㅠㅠ
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
15년 전 조회 1,534
15년 전 조회 874
15년 전 조회 921
15년 전 조회 970
15년 전 조회 2,978
15년 전 조회 968
15년 전 조회 1,010
15년 전 조회 848
15년 전 조회 1,527
15년 전 조회 1,557
15년 전 조회 1,038
15년 전 조회 1,178
15년 전 조회 1,174
15년 전 조회 788
15년 전 조회 787
15년 전 조회 783
15년 전 조회 654
15년 전 조회 981
15년 전 조회 842
15년 전 조회 810