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 질문답변

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

+
제목 글쓴이 날짜 조회
13년 전 조회 1,034
13년 전 조회 835
13년 전 조회 1,612
13년 전 조회 1,783
13년 전 조회 1,480
13년 전 조회 1,002
13년 전 조회 1,164
13년 전 조회 1,025
13년 전 조회 828
13년 전 조회 1,537
13년 전 조회 932
13년 전 조회 1,617
13년 전 조회 876
13년 전 조회 1,069
13년 전 조회 1,544
13년 전 조회 967
13년 전 조회 1,063
13년 전 조회 964
13년 전 조회 1,170
13년 전 조회 1,757
🐛 버그신고