일반페이지에서 최근게시물이랑 로그인 불러오기가 너무힘드네요.

일반 페이지에서 최근게시물이랑 로그인등을 삽입할려고 합니다. 근데 너무 안되네요.ㅡㅡ;
게시판에서는 물론 잘되구요. 내용은 아래와 같습니다.



일반페이지에 html페이지 위에 소스는 아래와 같이 넣었습니다.
$g4_path는 url말고도 이리저리 다 바꿔봐도 안되네요.
--------------------------------------------------------------------------------------------
<?
$g4_path="http://www.poinstudio.co.kr/bbs";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>



일반페이지의 경로는 아래와 같은 형식으로 되어있구요.
-----------------------------------------------------------------------
http://www.poinstudio.co.kr/bbs/html/portfolio.php



에러는 아래와 같이 발생합니다.
-----------------------------------------------------------------------------------------------------------------

Warning: include_once() [function.include-once]: URL file-access is disabled in the server configuration in /home2/poinstudio/www/bbs/html/portfolio.php on line 3

Warning: include_once(http://www.poinstudio.co.kr/bbs/common.php) [function.include-once]: failed to open stream: no suitable wrapper could be found in /home2/poinstudio/www/bbs/html/portfolio.php on line 3

Warning: include_once() [function.include]: Failed opening 'http://www.poinstudio.co.kr/bbs/common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home2/poinstudio/www/bbs/html/portfolio.php on line 3

Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home2/poinstudio/www/bbs/html/portfolio.php on line 4

Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home2/poinstudio/www/bbs/html/portfolio.php on line 4
|

댓글 2개

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

해당폴더에 _common.php를 만들어서..
$g4_path = "..";
include("$g4_path/common.php");

common.php파일의 위치를 상대경로로 지정 해 주셔야 합니다...
오~정말 감사드립니다.
드디어~드디어 해결됐습니다.^^
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
17년 전 조회 1,544
17년 전 조회 1,768
17년 전 조회 1,663
17년 전 조회 1,879
17년 전 조회 1,413
17년 전 조회 1,663
17년 전 조회 1,572
17년 전 조회 1,450
17년 전 조회 1,533
17년 전 조회 1,574
17년 전 조회 1,516
17년 전 조회 1,689
17년 전 조회 1,689
17년 전 조회 1,495
17년 전 조회 1,501
17년 전 조회 1,657
17년 전 조회 1,920
17년 전 조회 1,597
17년 전 조회 1,890
17년 전 조회 1,542
🐛 버그신고