그누보드와 다른 폴더있는 php 연동시키고 싶어요. 정보
그누보드와 다른 폴더있는 php 연동시키고 싶어요.본문
그누보드와 다른 폴더있는 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. 회원연동시키는 부분
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. 회원연동시키는 부분
댓글 전체
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";
?>
<?
$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~~~~~
전 왜 안될까요.ㅠㅠ
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 로 하셔야 합니다
참고 할 좋은 정보네요....