용

이거 왜이럴까요 ㅠ Warning: main(./common.php)

· 2011-03-13 (일) 18:15:55 · 2536 · 6
루트 - index.php
- gnuboard4(폴더) - _common.php...

이렇게 되있는 상황에서 상위폴더의 index.php에 _common.php를 include시켰습니다.

<?include_once("./gnuboard4/_common.php");
include_once("$g4[path]/gnuboard4/lib/outlogin.lib.php");?>
이 코드가 들어갔구요.

그런데 파일을 인식하지를 못하네요 ㅠ

Warning: main(./common.php) [function.main]: failed to open stream: No such file or directory in /iweb/hankook/wwwhome/gnuboard4/_common.php on line 3

Warning: main() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/opt/apm/php/lib/php') in /iweb/hankook/wwwhome/gnuboard4/_common.php on line 3

Warning: main(/gnuboard4/lib/outlogin.lib.php) [function.main]: failed to open stream: No such file or directory in /iweb/hankook/wwwhome/index.php on line 27

Warning: main() [function.include]: Failed opening '/gnuboard4/lib/outlogin.lib.php' for inclusion (include_path='.:/opt/apm/php/lib/php') in /iweb/hankook/wwwhome/index.php on line 27

이런 오류가 뜹니다. 어떻게 해결할 수 있는 방법이 없을까요?
|

댓글 6개

<?include_once("./gnuboard4/_common.php");
include_once("$g4[path]/gnuboard4/lib/outlogin.lib.php");?>

이거 이전에 공백이 있나 확인해보시고 다시 질문 주세요.
2011-03-13 (일) 18:36:06
공백이 있으면 안돼는 건가요??
<?include_once("./gnuboard4/_common.php");include_once("$g4[path]/gnuboard4/lib/outlogin.lib.php");?>

여튼 이걸 제일 처음으로 올리고 다시 저장했더니 이렇게 뜹니다...

Warning: main(./common.php) [function.main]: failed to open stream: No such file or directory in /iweb/hankook/wwwhome/gnuboard4/_common.php on line 3

Warning: main() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/opt/apm/php/lib/php') in /iweb/hankook/wwwhome/gnuboard4/_common.php on line 3

Warning: main(/gnuboard4/lib/outlogin.lib.php) [function.main]: failed to open stream: No such file or directory in /iweb/hankook/wwwhome/index.php on line 1

Warning: main() [function.include]: Failed opening '/gnuboard4/lib/outlogin.lib.php' for inclusion (include_path='.:/opt/apm/php/lib/php') in /iweb/hankook/wwwhome/index.php on line 1

파일경로설정을 이렇게 해주면 원래 되야하나요??? 되시는 분들 혹시 그 php파일 공유해주실수없나용 ㅠ?
index.php에
<?
include_once("./_common.php");
이렇게 해보시고

_common.php가
<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
이렇게 되어져 있나 확인해보세요. 디렉터리 구조가 어떻게 되었는지는 모르겠지만
그누배포판을 기준으로 해보면 "./gnuboard4/_common.php"이걸 이렇게 쓴것 자체가
이해가 안되네요.

그리고 include_once("$g4[path]/lib/outlogin.lib.php"); 이건 head.php에서 이미 한번 불러서
쓰고 있을 텐데 따로 불러주어야 할 특별한 이유가 있으신건가요?
2011-03-13 (일) 18:50:10
루트/gnuboard4와 index.php가 있어요 그래서 index.php에서 gnuboard4로 들어가기위해서 /gnuboard4/를 쓴거구요 _common.php는 님이 말씀하신대로 되어있네요
그래서 추측한게 _common.php에서 common.php를 불러올때 루트/common.php 이렇게 해서 안되는걸까 추측하고 있어요
head.php는 안불렀는데요;; 불러야되나요;;?? 영카트 운영메뉴얼에
<?
include_once("./_common.php");
include_once("$g4[path]/lib/outlogin.lib.php"); // outlogin() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo outlogin("basic"); // basic 스킨으로 아웃로그인을 출력합니다.
?>
이렇게 하라고 나와있길래;;
2011-03-13 (일) 19:02:08
<?include_once("./_common.php");?>
먼저 다른 php 다 지우고 이거 해봤더니 이렇게 됩니다!

Warning: main(./_common.php) [function.main]: failed to open stream: No such file or directory in /iweb/hankook/wwwhome/index.php on line 1

Warning: main() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/opt/apm/php/lib/php') in /iweb/hankook/wwwhome/index.php on line 1
2011-03-13 (일) 19:04:32
또 _common.php을
$g4_path = "./gnuboard4"; 이렇게 바꿔도봤는데 안되네용 ㅠ
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
11-03-14 조회 1,614
11-03-14 조회 1,651
11-03-14 조회 1,850
11-03-14 조회 1,603
11-03-14 조회 4,840
11-03-13 조회 1,753
11-03-13 조회 1,739
11-03-13 조회 1,781
11-03-13 조회 2,537
11-03-13 조회 1,609
11-03-13 조회 1,960
11-03-13 조회 1,602
11-03-13 조회 1,984
11-03-13 조회 1,650
11-03-13 조회 3,890
11-03-13 조회 1,810
11-03-13 조회 1,035
11-03-12 조회 1,540
11-03-12 조회 1,598
11-03-12 조회 2,274