에러 질문

에러 질문

QA

에러 질문

답변 2

본문

이 코드 에러가 있는데 뭐가 문제일까요?

리스트에 

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 
//include_once(G5_PATH."/_common.php");
include_once(G5_LIB_PATH.'/outlogin.lib.php');
include_once(G5_LIB_PATH.'/thumbnail.lib.php');

이렇게 되어 있습니다.

 

 

 

arning: include_once(../../common.php): failed to open stream: No such file or directory in /usr/share/nginx/html/adm/sms_admin/_common.php on line 3

Warning: include_once(): Failed opening '../../common.php' for inclusion (include_path='/usr/share/nginx/html/plugin/htmlpurifier/standalone:.:/usr/share/pear:/usr/share/php') in /usr/share/nginx/html/adm/sms_admin/_common.php on line 3

이 질문에 댓글 쓰기 :

답변 2

https://www.google.com/search?q=php+%EC%97%90%EB%9F%AC+%EB%A0%88%EB%B2%A8

한번 일독을 추천드립니다.

 

$list[$i]['wr_57'] 이것이 에러(notice)가 난다면 $i값이 적절하지 않을 것으로 보입니다.

감사합니다. 분할 필드라 그동안 최상단에 넣어서 이상이 없었는데
안돼서 삽질하다 FOR문 안에 넣으니 애러는 사라졌습니다.
애러표시되는거는 다 잡은거 같은데 질문의 common.php가 애러나네요,

테마적용중이며
리스트 상단에
include_once(G5_PATH."/_common.php"); 이렇게 했다가 애러나는거 같아서,,,
질문의 sms_admin/_common.php에러는 코드를 빼버렸습니다.

그런데 오리지널 common.php 애러는 여전하네요

Warning: include_once(./common.php): failed to open stream: No such file or directory in /usr/share/nginx/html/_common.php on line 2

Warning: include_once(): Failed opening './common.php' for inclusion (include_path='/usr/share/nginx/html/plugin/htmlpurifier/standalone:.:/usr/share/pear:/usr/share/php') in /usr/share/nginx/html/_common.php on line 2

테마스킨폴더에는
_common.php들어있고
<?php
include_once('../../../../../common.php');
이렇게 되어 있는데 애러가 나서 왜 그런지 모르겠습니다..흑흑

Warning: include_once(./common.php): failed to open stream: No such file or directory in /usr/share/nginx/html/_common.php on line 2
==
이거는 경로가 틀렸기 때문에 나오는 메시지입니다.
include_once('../../../../../common.php');
../ 갯수가 맞는지 잘 확인해 보세요.

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 1,534
© SIRSOFT
현재 페이지 제일 처음으로