최근게시물...아..돌긋넹.. 정보
최근게시물...아..돌긋넹..관련링크
본문
각각의 폴더및 파일위치입니다.
그누보드 : www/board
index.php : www/index.php
두개모두 root에 있습니다. 모든 검색을 통해 본 내용들을 테스트해보았지만
펑펑터지는 에러에 이렇게 글올립니다.
상단에
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
echo latest("sh_as", "notice", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
echo latest("sh_as", "notice", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
원하는위치에
<?=latest("sh_as", "notice", 5, 70)?>
그리고 board/_common.php
<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
이렇게 되어있습니다. 에러나는 이유가 뭘까요..ㅠㅠ
댓글 전체
아래의 echo latest("sh_as", "notice", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다. 를 제거해 보세요!
===================================================================================
상단에
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
echo latest("sh_as", "notice", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.<= 여기
?>
===================================================================================
상단에
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
echo latest("sh_as", "notice", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.<= 여기
?>
ㅜ.ㅠ 그래도 안돼요..
에러 내용을 알려주세요
Warning: main(./_common.php): failed to open stream: No such file or directory in /home/hosting_users/iblueworld/www/index.php on line 5
Warning: main(): Failed opening './_common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/iblueworld/www/index.php on line 5
Warning: main(/lib/latest.lib.php): failed to open stream: No such file or directory in /home/hosting_users/iblueworld/www/index.php on line 6
Warning: main(): Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/iblueworld/www/index.php on line 6
Warning: main(): Failed opening './_common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/iblueworld/www/index.php on line 5
Warning: main(/lib/latest.lib.php): failed to open stream: No such file or directory in /home/hosting_users/iblueworld/www/index.php on line 6
Warning: main(): Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/iblueworld/www/index.php on line 6
경로가 잘못되었네요...
그누보드가 /board라는 폴더에 설치 되어있고
index.php는 /(root)에 있으니까 /(root)에서 _common.php파일을 찾는것입니다.
편하게하시려면
www/index.php 파일에
<? echo(" <meta http-equiv='Refresh' content='0; URL=\"/board/index.php\"'> "); ?>
위의 1줄만 쓰시고 board폴더안에 index.php를 수정해서 사용하심이 좋을듯 합니다.
그누보드가 /board라는 폴더에 설치 되어있고
index.php는 /(root)에 있으니까 /(root)에서 _common.php파일을 찾는것입니다.
편하게하시려면
www/index.php 파일에
<? echo(" <meta http-equiv='Refresh' content='0; URL=\"/board/index.php\"'> "); ?>
위의 1줄만 쓰시고 board폴더안에 index.php를 수정해서 사용하심이 좋을듯 합니다.
수정전
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
echo latest("sh_as", "notice", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
수정후
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<?=latest("sh_as", notice 5, 70);?>
으로 하세요 ^^
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
echo latest("sh_as", "notice", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
수정후
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<?=latest("sh_as", notice 5, 70);?>
으로 하세요 ^^