그누의 메인화면에 파일 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");
$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>
<!-- 메인화면 최신글 끝 -->
<?
<!-- 메인화면 최신글 시작 -->
<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) 에러메시지는 다음과 같습니다.
|
3) 어디가 잘못된 것일까요?
참고로 http://www.healthinfo.co.kr/linker/index.php 는 linker 로 작업한 페이지입니다.
댓글 전체
include("http://www.healthinfo.co.kr/linker/index.php");
include_once("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");
?>
<?
$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");
?>