_common.php

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 : http://cod1.cafe24.com/gnuboard4/

Warning: main(./gnuboard4/common.php) [function.main]: failed to create stream: No such file or directory in /home/hosting_users/cod1/www/gnuboard4/_common.php on line 3

Warning: main() [function.main]: Failed opening './gnuboard4/common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/cod1/www/gnuboard4/_common.php on line 3

Warning: main(/lib/latest.lib.php) [function.main]: failed to create stream: No such file or directory in /home/hosting_users/cod1/www/gnuboard4/index.php on line 3

Warning: main() [function.main]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/cod1/www/gnuboard4/index.php on line 3
|

댓글 1개

해결 했습니다. 경로 문제 였군요.

저의 경우 www 루트 경로 아래에 gnuboard4 라는 폴더를 만들어 사용 했는데 그러면서 경로가 꼬였던 것 같습니다.

_common.php 각각의 폴더별로
<?
$g4_path = "..";
include_once("$g4_path/common.php");
?>

.. 혹은 ./ 혹은 $g4_path = "./gnuboard4";
조정을 했더니 해결이 되는군요.

^______________________________________^

상대경로를 쓰기 때문에 경로설정이 중요 하군요.

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고