그누보드 디렉토리 말고 다른디렉토리에서 그누보드파일 include가 안되요...

그누보드 디렉토리 말고 다른디렉토리에서 그누보드파일 include가 안되요...

QA

그누보드 디렉토리 말고 다른디렉토리에서 그누보드파일 include가 안되요...

답변 1

본문

거의 10년동안 php와 웹에 손대지 않고있다가 오랜만에 웹에 손대기 시작하니 잘 안되네요... 10년전 웹과 지금의 웹은 차이도 많이나고요...ㅠㅠ
 
그누보드 디렉토리 말고 다른디렉토리에서 그누보드파일 include가 안되요..
public_html 의 gnuboard4 디렉토리 안에 그누보드가 있고
public_html 의 test 디렉토리 안에서 gnuboard4 디렉토리의 파일을 include_once 하려 하니
 
Warning: main(./home/계정명/public_html/gnuboard4/lib/latest.lib.php) [function.main]: failed to open stream: No such file or directory in /home/계정명/public_html/test/test_05.htm on line 3
Warning: main() [function.include]: Failed opening './home/계정명/public_html/gnuboard4/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/제계정명/public_html/test/test_05.htm on line 3
 
이렇게만 되네요...
<?
include_once("./gnuboard4/lib/latest.lib.php");
?>
이렇게 했습니다.
 
그누보드디렉토리 말고 다른 곳에서 최근게시물을 사용해보려는 거죠...ㅠㅋㅋ
 
도와주세요~

이 질문에 댓글 쓰기 :

답변 1

include_once("../gnuboard4/lib/latest.lib.php");
그런데 문제는 상단부분에 그누보드 경로 common.php 등이 없으면 최신글 작동안합니다 

<?
$g4_path="../gnuboard4";
include "$g4_path/common.php";
include_once("$g4[path]/lib/latest.lib.php");

이렇게 내용을 구성하세요

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 125,873
© SIRSOFT
현재 페이지 제일 처음으로