일반 html 문서 링크시... 정보
일반 html 문서 링크시...본문
gnuboard4/myhtml/myhtml.html 처럼 그누디렉 아래 디렉 만들고 그안에 제가 만든 html문서를 넣었습니다.
myhtml.html 에
<?
include_once("../_common.php"); // 여기에 문제가 있는것같은데...
include_once("$g4[path]/lib/latest.lib.php");
$g4[title] = "";
include_once("./_head.php");
?>
제가만든html 여기에 넣었구요
<?
include_once("./_tail.php");
?>
이렇게 myhtml.html을 만들었고
head.php 에 <a href="<?=$g4[path]?>/myhtml/myhtml.html">내문서</a> 로 링크 넣었구요.
이 링크 클릭하면
Warning: main(./common.php) [function.main]: failed to open stream: No such file or directory in /usr/local/apache/htdocs/gnuboard4/_common.php on line 3
라는 메시지가 나오네요.
_common.php 파일에서 $g4_path="." 를 $g4_path=".."로 바꾸면 head.php를 비롯한 모두가 에러구요..
gnuboard4 에 디렉토리 만들고 그속에 html문서 넣고 head.php 에서 그 문서 링크할 때 어떻게 하나요?
참고로 gnuboard4디렉토리(_common.php와 head.php있는곳)에 html문서를 놓고
head.php 에 <a href="<?=$g4[path]?>/myhtml.html">내문서</a> 로 링크해 보면 잘돼요.
myhtml.html 에
<?
include_once("../_common.php"); // 여기에 문제가 있는것같은데...
include_once("$g4[path]/lib/latest.lib.php");
$g4[title] = "";
include_once("./_head.php");
?>
제가만든html 여기에 넣었구요
<?
include_once("./_tail.php");
?>
이렇게 myhtml.html을 만들었고
head.php 에 <a href="<?=$g4[path]?>/myhtml/myhtml.html">내문서</a> 로 링크 넣었구요.
이 링크 클릭하면
Warning: main(./common.php) [function.main]: failed to open stream: No such file or directory in /usr/local/apache/htdocs/gnuboard4/_common.php on line 3
라는 메시지가 나오네요.
_common.php 파일에서 $g4_path="." 를 $g4_path=".."로 바꾸면 head.php를 비롯한 모두가 에러구요..
gnuboard4 에 디렉토리 만들고 그속에 html문서 넣고 head.php 에서 그 문서 링크할 때 어떻게 하나요?
참고로 gnuboard4디렉토리(_common.php와 head.php있는곳)에 html문서를 놓고
head.php 에 <a href="<?=$g4[path]?>/myhtml.html">내문서</a> 로 링크해 보면 잘돼요.
댓글 전체
바다님 감사합니다. 혼자 했으면 아마 7박8일정도...
복받으세요.
복받으세요.