기

그누보드와 다른 폴더있는 php 연동시키고 싶어요.

사진.PNG
그누보드와 다른 폴더있는 php 연동시키고 싶어요.

include 연동



/public_html/그누보드/
-----------/호출시키고싶은 솔루션php/

<? include_once("/home1/tumento/public_html/그누보드/index.php"); ?>

하고싶은 부분

1. 그누보드 중심사용하며 특정 솔루션 부분만
<? include_once("/home1/tumento/public_html/그누보드/index.php"); ?>
호출시키는것

haed : 그누보드
index : 그누보드+다른 폴더있는 php
tail : 그누보드

루트가 다른 부분 php 내용을 호출시키기

2. 회원연동시키는 부분

첨부파일

사진.PNG (349.7 KB)
0회 2012-11-30 13:25
|

댓글 4개

1. hub/_common.php 파일 작성

<?
$g4_path = "../그누보드";
include_once $g4_path . "/common.php";
?>

2. hub/다른파일.php 작성

<?
include_once "_common.php";
include_once $g4['path']."/head.php";
?>
이곳에 내용을 작성하면 그누보드의 head, tail 안에 내용이 작성됩니다.
<?
include_once $g4['path']."/head.php";
?>
알려주신 방법으로 진행시
Fatal error: Cannot redeclare cut_str() in /home1/------/public_html/그누보드/lib/common.lib.php on line 1004
이렇게 나옵니다.

해당 hub에서 실행시


또 다르게 그누보드에서 진행시
Warning: include_once(won_path/) [function.include-once]: failed to open stream: No such file or directory in /home1~~~~~



Warning: include_once() [function.include]: Failed opening 'won_path/' for inclusion (include_path='.:/usr/lib/php/pear') in /home1~~~~~

전 왜 안될까요.ㅠㅠ
정확히 어떻게 하셨는지 자세히 남겨 보세요. $g4_path 는 반드시 $g4_path 로 하셔야 합니다
참고 할 좋은 정보네요....
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
12-11-30 조회 848
12-11-30 조회 1,404
12-11-30 조회 940
12-11-30 조회 1,637
12-11-30 조회 1,863
12-11-30 조회 1,316
12-11-30 조회 930
12-11-30 조회 1,626
12-11-30 조회 2,891
12-11-30 조회 1,696
12-11-30 조회 1,181
12-11-30 조회 2,017
12-11-30 조회 1,694
12-11-30 조회 2,442
12-11-30 조회 1,540
12-11-30 조회 1,362
12-11-30 조회 938
12-11-30 조회 1,070
12-11-30 조회 1,086
12-11-30 조회 3,470