프

서브페이지 생성시 오류

· 2010-10-31 (일) 08:58:50 · 1188 · 1
새로운 페이지를 쓰려고 하는데


Warning: main(/_common.php) [function.main]: failed to open stream: No such file or directory in /home/hosting_users/winscore/www/score/score_01.php on line 2

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

Warning: main(/lib/latest.lib.php) [function.main]: failed to open stream: No such file or directory in /home/hosting_users/winscore/www/score/score_01.php on line 3

Warning: main() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/winscore/www/score/score_01.php on line 3

Warning: main(./_head.php) [function.main]: failed to open stream: No such file or directory in /home/hosting_users/winscore/www/score/score_01.php on line 6

Warning: main() [function.include]: Failed opening './_head.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/winscore/www/score/score_01.php on line 6

Warning: main(/main_top.php) [function.main]: failed to open stream: No such file or directory in /home/hosting_users/winscore/www/score/score_01.php on line 14

Warning: main() [function.include]: Failed opening '/main_top.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/winscore/www/score/score_01.php on line 14


Warning: main(./_tail.php) [function.main]: failed to open stream: No such file or directory in /home/hosting_users/winscore/www/score/score_01.php on line 32

Warning: main() [function.include]: Failed opening './_tail.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/winscore/www/score/score_01.php on line 32


계속 이런오류가 나네요.


안에 소스창은
======================================================================================
<?
include_once("/_common.php");
include_once("$g4[path]/lib/latest.lib.php");

$g4['title'] = "";
include_once("./_head.php");
?>



<!-- 검색/채팅/배너3 시작 -->
<table border=0 cellpadding=0 cellspacing=0 style="margin-top:20px">
<tr><td><?
include_once("$g4[path]/main_top.php");
?>
</td></tr>
</table>
<!-- 검색/채팅/배너3 종료 -->




<?
include_once("./_tail.php");
?>




답변좀 주세요 ㅠㅠ
|

댓글 1개

위 에러의 내용은 경로가 안맞아서 생기는 문제네요...

그누보드는 경로 맞추는데 있어서 폴더 하나 하나의 안에

_common.php 를 생성해두고 경로를 맞춥니다..

사용은 제일 상단에 인크루드 하고

그리고 그 안에서 사용되는 경로는 g4['path'] 를 사용하는 군요

경로 잘 살펴보세요..
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
10-10-31 조회 1,788
10-10-31 조회 1,489
10-10-31 조회 973
10-10-31 조회 853
10-10-31 조회 1,080
10-10-31 조회 855
10-10-31 조회 960
10-10-31 조회 2,703
10-10-31 조회 1,188
10-10-31 조회 1,608
10-10-31 조회 1,303
10-10-31 조회 1,653
10-10-31 조회 1,164
10-10-31 조회 2,378
10-10-31 조회 1,747
10-10-31 조회 1,114
10-10-31 조회 1,677
10-10-31 조회 1,189
10-10-31 조회 3,475
10-10-31 조회 6,685