최근 게시물 추출 경로 설정 질문 정보
최근 게시물 추출 경로 설정 질문
본문
최근 게시물 추출 경로 설정 질문
1. 'GNBS' 디렉토리에 그누보드 설치
2. 아래의 소스를 참고하여 'test.php' 파일을 만들어 추출한 결과
////////////////////////////////
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
echo latest("basic", "dnotice", 5, 20);
?>
////////////////////////////////
결과 1. 'test.php' 파일을 그누보드가 설치된 'GNBS'디렉토리에 업로드 하면 정상 작동
결과 2. 'test.php' 파일을 그누보드가 설치된 'GNBS'디렉토리의 상위에 업로드 하면 아래와 같은 메시지가 뜹니다.
/////////////////////////////
Warning: main(./_common.php) [function.main]: failed to open stream: No such file or directory in /home/geohwasystem/test.php on line 2
Warning: main() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/geohwasystem/test.php on line 2
Warning: main(/lib/latest.lib.php) [function.main]: failed to open stream: No such file or directory in /home/geohwasystem/test.php on line 3
Warning: main() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/geohwasystem/test.php on line 3
Fatal error: Call to undefined function: latest() in /home/geohwasystem/test.php on line 4
/////////////////////////////
3. 질문
위의 'test.php' 파일을 그누보드가 설치된 'GNBS'디렉토리의 상위에 업로드 하여 사용하려 하는데
정확한 경로 설정을 어떻게 해야 하는지 알고 싶습니다.
질문 게시판의 저와 비슷한 경우를 참고해서 실행해봤지만 제가 이해력도 좀 부족하다보니 실행에 어려움이 많습니다.
잘 아시는 분의 도움을 구하고 싶습니다.
4. 결과물 주소
댓글 전체
주소 2) http://geohwasystem.com/test.php 를 사용할 수 있습니다.
_common.php 파일 내용은 다음과 같습니다.
=================================
<?php
$g4_path = "./GNBS";
include_once("$g4_path/common.php");
?>
=================================

정말 고맙습니다. 오늘도 좋은 하루 되시길 진심으로 기원합니다.
답변을 준비하는 내내 참 기분이 좋았습니다.
즐거운 주말 보내세요.
감사합니다.