테스트 사이트 - 개발 중인 베타 버전입니다

_common.php화일이 뭐가 문제인지 모르겠어요

진강 11년 전 조회 7,332
Warning: include_once(./common.php) [http://gosunglee.webweaver.co.kr/g5/content/function.include-once" style="font-family: Gulim; font-size: medium; line-height: normal">function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/ghh_gosunglee/www/g5/_common.php on line 2

Warning: include_once() [http://gosunglee.webweaver.co.kr/g5/content/function.include" style="font-family: Gulim; font-size: medium; line-height: normal">function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/ghh_gosunglee/www/g5/_common.php on line 2
=======================================
위 에라메세지가 뜨는데
_common.php 에는 내용이
</span></font></div>
<div><font face="Gulim" size="3"><span style="line-height: normal"><div><?php</div>
<div>include_once('./common.php');</div>
<div>?></div></span></font></div>
<div><font face="Gulim" size="3"><span style="line-height: normal">
이거 밖에 없거든요...
도대체 뭐가 잘못된건지요...?
어제 밤새워 경로를 이리저리 바꿔봤는데도 계속 마찬가지네요.. ㅠㅜ
댓글을 작성하려면 로그인이 필요합니다.

답변 5개

11년 전
config.php 화일의 28 Line에 있는 내용이 어떻게 되어 있나요?
</div>
<div>define('G5_DOMAIN', '');</div>
<div>
요게 잘 들어가야 합니다.
</div></div>
<div><span style="font-size: 10pt; line-height: 1.5">define('G5_DOMAIN', '</span><span style="font-size: 10pt; line-height: 1.5"><a href="https://www.domain.com/gnuboard5');" target="_blank" rel="noopener noreferrer">https://www.domain.com/gnuboard5');</a></span></div>
<div><div>
요렇게 말입니다.
로그인 후 평가할 수 있습니다

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

11년 전
1.gif
 
보시면....지금현재 같은 경로에 들어있거든요...
로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

틴톡
11년 전
[code]
<?php
include_once('common.php');
?>
[/code]
위와같이 써보세요

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

11년 전

만약 A.php에  _common.php  인크루드한다고 가정하고

A.php 상단에  _common.php 파일을 인크루드 하셨잖아요

그런데 _common.php 파일은 또 common.php을 가져옵니다.

그럼 기준은 A.php 파일을 기준으로 common.php 을 찾아야 합니다.

a.php 파일과 common.php  파일이 같은 폴더에 있나요? 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 2개

진강
11년 전
위 첨부 이미지 보시면....지금현재 같은 경로에 들어있거든요...
_common.php / common.php 는 원 파일 수정한거 없는 상태구요..
head.php와 index.php 를 고쳤는데.....아무래도 그 두개 파일 고친부분이 문제인가 싶어서 살펴보는데...
이상이 없어요.

혹시몰라 그누보드5 새로 다운받은 같은화일로 계속 엎어도 보아도 마찬가지어요...ㅠㅜ
겸손1935
11년 전
그러면 절대 경로 한번 접근해 보시면 어떨까요?

위에 오류는 분명 경로를 못찾아서거든요.....

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

11년 전
_common.php
common.php
같은 경로에 들어있거든요... ㅠㅜ
로그인 후 평가할 수 있습니다

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

편리
11년 전
_common.php 파일이 있는 위치에 common.php 파일이 없어서 발생하는 오류입니다.
common.php 파일의 위치를 정확하게 지정해 주셔야할 것 같습니다.
로그인 후 평가할 수 있습니다

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

답변을 작성하려면 로그인이 필요합니다.

로그인