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

메인에 공지사항 출력..

· 14년 전 · 1507 · 2
질문답변보고 하라는대로 했는데도 안되네요..
하라는데로 했더니
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 파일에 넣으면 색깔이 변합니다
이게 무슨 차이가 있는거 같긴한데 잘 모르겠습니다.

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

제발 좀 도와주세요 ㅠㅠ

댓글 작성

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

로그인하기

댓글 2개

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

게시글 목록

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