니

그누의 메인화면에 파일 include 시키려면?

그누의 메인화면 (http://www.healthinfo.co.kr/linker/g4_linker.php)에 파일을 include 시키려고 하는데 안됩니다.
 
1) g4_linker.php 파일
 
<?
$g4_path = ".."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
include_once("../head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<?
include("http://www.healthinfo.co.kr/linker/index.php");
?>
</td></tr></table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("../tail.php");
?>
 
2) 에러메시지는 다음과 같습니다.   

Warning: main() [function.main]: URL file-access is disabled in the server configuration in /home/health/html/linker/g4_linker.php on line 10

Warning: main(http://www.healthinfo.co.kr/linker/index.php) [function.main]: failed to open stream: no suitable wrapper could be found in /home/health/html/linker/g4_linker.php on line 10

Warning: main() [function.main]: URL file-access is disabled in the server configuration in /home/health/html/linker/g4_linker.php on line 10

Warning: main(http://www.healthinfo.co.kr/linker/index.php) [function.main]: failed to open stream: no suitable wrapper could be found in /home/health/html/linker/g4_linker.php on line 10

Warning: main() [function.include]: Failed opening 'http://www.healthinfo.co.kr/linker/index.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/health/html/linker/g4_linker.php on line 10
3) 어디가 잘못된 것일까요?
    참고로 http://www.healthinfo.co.kr/linker/index.php 는 linker 로 작업한 페이지입니다.
  

댓글 2개

include("http://www.healthinfo.co.kr/linker/index.php");
include_once("http://www.healthinfo.co.kr/linker/index.php");
다음과 같이 해결했습니다.

<?
$g4_path = ".."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
include_once("../head.php");

?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<?
include_once("index.php");
?>
</td></tr></table>
<!-- 메인화면 최신글 끝 -->
<?

include_once("../tail.php");
?>
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
07-06-24 조회 1,555
07-06-24 조회 4,122
07-06-24 조회 1,097
07-06-24 조회 1,630
07-06-24 조회 1,604
07-06-24 조회 1,616
07-06-24 조회 1,288
07-06-24 조회 1,624
07-06-23 조회 1,275
07-06-23 조회 1,640
07-06-23 조회 1,559
07-06-23 조회 1,633
07-06-23 조회 1,829
07-06-23 조회 1,619
07-06-23 조회 1,593
07-06-23 조회 1,845
07-06-23 조회 1,357
07-06-22 조회 1,684
07-06-22 조회 1,702
07-06-22 조회 1,502