일반 로그인 페이지에서의 오류 (아웃로그인 X) 정보
일반 로그인 페이지에서의 오류 (아웃로그인 X)본문
일반 로그인 페이지에서 아래와 같은 오류가 발생합니다.
--------------------------------------------------------------------------------------------------------------------------------
Warning: main(counter/nalog.php) [function.main]: failed to open stream: No such file or directory in /home/trendy/public_html/wing/head.php on line 4
Warning: main(counter/nalog.php) [function.main]: failed to open stream: No such file or directory in /home/trendy/public_html/wing/head.php on line 4
Warning: main() [function.include]: Failed opening 'counter/nalog.php' for inclusion (include_path='.:/usr/lib/php/pear') in /home/trendy/public_html/wing/head.php on line 4
--------------------------------------------------------------------------------------------------------------------------------
head.php파일에서 발생하는 오류인 것 같은데...
경로를 아무리 살펴봐도 오류의 원인을 모르겠네요.
참고로, counter디렉토리 하위에 분명 nalog.php라는 파일은 존재하며
head.php파일의 최상단에는 아래와 같은 코드를 삽입하였습니다.
--------------------------------------------------------------------------------------------------------------------------------
<?
$path = "counter";
$counter = "monotrendy"; //카운터명
include "$path/nalog.php"; //상기 오류문구에서 'line 4'에 해당하는 줄!!
?>
--------------------------------------------------------------------------------------------------------------------------------
고수님들의 명쾌한 답변 부탁드립니다..
오류 페이지 주소 : http://trendy.maru.net/bbs/login.php
--------------------------------------------------------------------------------------------------------------------------------
Warning: main(counter/nalog.php) [function.main]: failed to open stream: No such file or directory in /home/trendy/public_html/wing/head.php on line 4
Warning: main(counter/nalog.php) [function.main]: failed to open stream: No such file or directory in /home/trendy/public_html/wing/head.php on line 4
Warning: main() [function.include]: Failed opening 'counter/nalog.php' for inclusion (include_path='.:/usr/lib/php/pear') in /home/trendy/public_html/wing/head.php on line 4
--------------------------------------------------------------------------------------------------------------------------------
head.php파일에서 발생하는 오류인 것 같은데...
경로를 아무리 살펴봐도 오류의 원인을 모르겠네요.
참고로, counter디렉토리 하위에 분명 nalog.php라는 파일은 존재하며
head.php파일의 최상단에는 아래와 같은 코드를 삽입하였습니다.
--------------------------------------------------------------------------------------------------------------------------------
<?
$path = "counter";
$counter = "monotrendy"; //카운터명
include "$path/nalog.php"; //상기 오류문구에서 'line 4'에 해당하는 줄!!
?>
--------------------------------------------------------------------------------------------------------------------------------
고수님들의 명쾌한 답변 부탁드립니다..
오류 페이지 주소 : http://trendy.maru.net/bbs/login.php
댓글 전체
'counter/nalog.php'
라는 파일이 없다네요.
라는 파일이 없다네요.
'counter디렉토리 하위에 분명 nalog.php라는 파일은 존재한다'고 위에....^^;
wing/head.php에서 불평하는 거니까
wing/counter/nalog.php가 없는 거죠.
wing/counter/nalog.php가 없는 거죠.
말씀하신대로 wing디렉토리의 하위에는 counter/nalog.php가 없는건 맞는데요...
그래서 head.php의 상단에 삽입한 코드 중
$path = "counter"; 를 한단계 상위인 $path = "../counter"; 로 수정해봤는데
그러면 오히려 에러문구의 줄 수만 늘어나서요. ㅠㅠ
에러 문구 자체는 이해가 가는데 어떻게 해야할지를 모르겠어요...
root 디렉 하위에 counter 디렉과 wing 디렉이 나란히 있는 구조예요.
그래서 head.php의 상단에 삽입한 코드 중
$path = "counter"; 를 한단계 상위인 $path = "../counter"; 로 수정해봤는데
그러면 오히려 에러문구의 줄 수만 늘어나서요. ㅠㅠ
에러 문구 자체는 이해가 가는데 어떻게 해야할지를 모르겠어요...
root 디렉 하위에 counter 디렉과 wing 디렉이 나란히 있는 구조예요.
다른 방법으로 해결했습니다.^^