그누의 메인화면에 파일 include 시키려면? > 그누4 질문답변

그누4 질문답변

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

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

그누의 메인화면에 파일 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 로 작업한 페이지입니다.
  
  • 복사

댓글 전체

다음과 같이 해결했습니다.

<?
$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");
?>
© SIRSOFT
현재 페이지 제일 처음으로