이런오류가나네요..어케수정할지 도움요청합니다 > 그누4 질문답변

그누4 질문답변

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

이런오류가나네요..어케수정할지 도움요청합니다 정보

이런오류가나네요..어케수정할지 도움요청합니다

본문


Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/nakka1/html/extend/latest.rank.lib.php on line 8

Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/share/pear') in /web/home/nakka1/html/extend/latest.rank.lib.php on line 8
  [상품 이미지 상세보기]

왕초보에요..아주상세이알챠주세요~~부탁드립니다
  • 복사

댓글 전체

현재 상태에서 경로 오류 뿐이 말씀을 못드리네요..
해당 파일인 lastest.rank.lib.php 의 8 번째 라인에서

include_once("$g4[path]/_common.php");
의 코드가 있을거라 예상이 됩니다.

$g4[path] 의 경로가 잘못 호출 되었을수 있습니다.
자세한건 소스를 봐야..
<?
$g4_path = "../../../";
include_once("$g4_path/common.php");
include_once("$board_skin_path/config.php");

        // 파일 출력
$sql = "select * from $g4[board_file_table] where `bo_table`='$bo_table' and `wr_id`='$wr_id'";
$result=mysql_query($sql);
for($i=0 ; $row = mysql_fetch_array($result) ; $i++){
$img[$i]="$g4[path]/data/file/$bo_table/$row[bf_file]";
}
?>
<script language="JavaScript">
<!--
function transimg(place) {
if (place==1) dare.src="<?=$img[0]?>";
if (place==2) dare.src="<?=$img[1]?>";
if (place==3) dare.src="<?=$img[2]?>";
if (place==4) dare.src="<?=$img[3]?>";
if (place==5) dare.src="<?=$img[4]?>";
if (place==6) dare.src="<?=$img[5]?>";
if (place==7) dare.src="<?=$img[6]?>";
if (place==8) dare.src="<?=$img[7]?>";
if (place==9) dare.src="<?=$img[8]?>";
if (place==10) dare.src="<?=$img[9]?>";
}
// -->
</script>
&nbsp;&nbsp;<b>[상품 이미지 상세보기]</b>
<table cellpadding="0" cellspacing="0" width="851" height="498">
    <tr>
      <td width="650" 547">
            <table cellpadding="0" cellspacing="0" width="650" height="498">
                <tr>
                    <td width="10" height="10">
                    </td>
                    <td width="640" height="10">
                    </td>
                </tr>
                <tr>
                    <td width="10">
                        <p>&nbsp;</p>
                    </td>
                    <td width="640">
<img src="<?=$img[0]?>" width="640" height="480" style='border:1 solid #cccccc;' name=dare>
                    </td>
                </tr>
            </table>
        </td>
        <td width="1">      </td>
<td width="200" height=498 valign=top>
            <table cellpadding="0" cellspacing="0" width="200">
                <tr>
                    <td width="9" height="10">
                    </td>
                    <td width="191" height="10">
                    </td>
                </tr>
                <tr>
                    <td width="9" height="409">
                        <p>&nbsp;</p>
                    </td>
                  <td width="191" height="409" valign=top>

                        <table cellpadding="0" cellspacing="0" width="190">
                            <tr>
                                <td width="90" height="90"><span style="cursor:hand" onMouseOver="transimg(1)"><img src="<?=$img[0]?>" width="90" height="70" style='border:1 solid #cccccc;'></span></td>
                                <td width="8" height="90">&nbsp;</td>
                                <td width="92" height="90"><span style="cursor:hand" onMouseOver="transimg(2)"><img src="<?=$img[1]?>" width="90" height="70" style='border:1 solid #cccccc;'></span></td>
                            </tr>
                            <tr>
                                <td width="90" height="8"></td>
                                <td width="8" height="8"></td>
                                <td width="92" height="8"></td>
                            </tr>
                            <tr>
                                <td width="90" height="90"><span style="cursor:hand" onMouseOver="transimg(3)"><img src="<?=$img[2]?>" width="90" height="70" style='border:1 solid #cccccc;'></span></td>
                                <td width="8" height="90">&nbsp;</td>
                                <td width="92" height="90"><span style="cursor:hand" onMouseOver="transimg(4)"><img src="<?=$img[3]?>" width="90" height="70" style='border:1 solid #cccccc; onerror="this.src='./img/noimg.gif'" >
                                </span></td>
                            </tr>
                            <tr>
                                <td width="90" height="8"></td>
                                <td width="8" height="8"></td>
                                <td width="92" height="8"></td>
                            </tr>
                        </table>

                  </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<table width="850" cellpadding="0" cellspacing="0">
    <tr>
        <td width="850" valign="middle" align="center" height="30"><a href="javascript:window.close()" onfocus=blur()><img src="<?=$board_skin_path?>/img/close.jpg" border="0"></a></td>
    </tr>
</table>
최상단고치면되나여?
보여주신 소스에는 오류가 없습니다.
보여주신 소스의 위치가 그누보드 설치의 3단계 하위에 위치 하다면
$g4_path="../../.."; 가 맞구요

설치디렉토리/해당디렉토리/

이런식으로 되어있으면
$g4_path = "..";

로 하시는 게 맞습니다..
해당 파일 위치가 몇번째 하위 인지 모르니 대답이 애매 하네요
$g4_path = '..';
$g4_path='../..';
이런식으로 단계를 늘려서 테스트해보세요
© SIRSOFT
현재 페이지 제일 처음으로