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,740
12-04-13 조회 1,927
12-04-13 조회 1,619
12-04-13 조회 1,167
12-04-13 조회 1,313
12-04-13 조회 1,166
12-04-13 조회 969
12-04-13 조회 1,679
12-04-13 조회 1,066
12-04-13 조회 1,758
12-04-13 조회 1,007
12-04-13 조회 1,199
12-04-13 조회 1,688
12-04-13 조회 1,108
12-04-13 조회 1,195
12-04-13 조회 1,108
12-04-12 조회 1,306
12-04-12 조회 1,894
12-04-12 조회 1,165
12-04-12 조회 1,367