s

커먼을 읽지못합니다.

http://vitum.co.kr/sub/01_01.php

<?
include_once("$g4[path]/common.php");
include_once("$g4[path]/head.sub.php");
$g4['title'] = "";
?>

위 코드를 삽입하니 다음과 같은 에러가 납니다.

Warning: main(/common.php) [function.main]: failed to open stream: No such file or directory in /home/hosting_users/vitum/www/top.php on line 2

Warning: main() [function.include]: Failed opening '/common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/vitum/www/top.php on line 2

Warning: main(/head.sub.php) [function.main]: failed to open stream: No such file or directory in /home/hosting_users/vitum/www/top.php on line 3

Warning: main() [function.include]: Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/vitum/www/top.php on line 3


게시판쪽에는 문제가 없는데, 왜이러는거죠?ㅠㅠ

댓글 2개

sub 폴더에 _common.php 만드시고
<?
$g4_path = ".."; // common.php 의 상대 경로
include_once ("$g4_path/common.php");
?>

01_01.php에
<?
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
$g4['title'] = "";
?>
이렇게 해보세요
아침안개님...말씀하신대로 곧바로 해보았지만 오류가 더 생기는것이....ㅠㅠ
암튼 참고하겠습니다. 감사합니다ㅠㅠ
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
12-04-13 조회 1,744
12-04-13 조회 1,941
12-04-13 조회 1,638
12-04-13 조회 1,183
12-04-13 조회 1,319
12-04-13 조회 1,178
12-04-13 조회 982
12-04-13 조회 1,682
12-04-13 조회 1,070
12-04-13 조회 1,760
12-04-13 조회 1,010
12-04-13 조회 1,205
12-04-13 조회 1,690
12-04-13 조회 1,111
12-04-13 조회 1,198
12-04-13 조회 1,112
12-04-12 조회 1,308
12-04-12 조회 1,895
12-04-12 조회 1,168
12-04-12 조회 1,368