s

커먼을 읽지못합니다.

· 2012-04-13 (금) 12:00:01 · 1650 · 2
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개

2012-04-13 (금) 12:19:54
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 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
12-04-13 조회 1,713
12-04-13 조회 1,898
12-04-13 조회 1,592
12-04-13 조회 1,132
12-04-13 조회 1,286
12-04-13 조회 1,139
12-04-13 조회 943
12-04-13 조회 1,651
12-04-13 조회 1,041
12-04-13 조회 1,734
12-04-13 조회 984
12-04-13 조회 1,175
12-04-13 조회 1,655
12-04-13 조회 1,082
12-04-13 조회 1,174
12-04-13 조회 1,085
12-04-12 조회 1,284
12-04-12 조회 1,864
12-04-12 조회 1,143
12-04-12 조회 1,343