최신글 추출 하기 질문입니다!! > 그누4 질문답변

그누4 질문답변

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

최신글 추출 하기 질문입니다!! 정보

최신글 추출 하기 질문입니다!!

본문

팁을 검색해봤는데도 경로가 바뀌니까 응용을 못하겠더군요.
 
www
 |------gnuboard4
 |
 |------dp----index.htm
               ----_common.php
 
 
이렇게 구성되어 있는데요..
 
index.htm에 이런 내용을...
 
<?
$g4_path = ".";
include_once("$g4_path/_common.php");
$g4[title] = "제목";
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<?=latest("basic", "news", 1, 20);?>
<?
include_once("$g4[path]/tail.sub.php");
?>
 
_common.php에 이런 내용을...
<?
$g4_path = "..";
include_once("$g4_path/common.php");
?>
 
 
입력했는데 에러메세지들이 뜨더군요. 어떤 부분을 어떻게 건드려야 하나요?
 
에러메세지는 다음과 같습니다.
 
Warning: main(./common.php): failed to open stream: No such file or directory in /home/hosting_users/ncore/www/dp/_common.php on line 3

Warning: main(): Failed opening './common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/ncore/www/dp/_common.php on line 3

Warning: main(/head.sub.php): failed to open stream: No such file or directory in /home/hosting_users/ncore/www/dp/index.htm on line 11

Warning: main(): Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/ncore/www/dp/index.htm on line 11

Warning: main(/lib/latest.lib.php): failed to open stream: No such file or directory in /home/hosting_users/ncore/www/dp/index.htm on line 12

Warning: main(): Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/ncore/www/dp/index.htm on line 12
 
Fatal error: Call to undefined function: latest() in /home/hosting_users/ncore/www/dp/index.htm on line 30
  • 복사

댓글 전체

아 감사합니다. 유아원님 그런데


Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/ncore/www/dp/index.htm:7) in /home/hosting_users/ncore/www/gnuboard4/head.sub.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/ncore/www/dp/index.htm:7) in /home/hosting_users/ncore/www/gnuboard4/head.sub.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/ncore/www/dp/index.htm:7) in /home/hosting_users/ncore/www/gnuboard4/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/ncore/www/dp/index.htm:7) in /home/hosting_users/ncore/www/gnuboard4/head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/ncore/www/dp/index.htm:7) in /home/hosting_users/ncore/www/gnuboard4/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/ncore/www/dp/index.htm:7) in /home/hosting_users/ncore/www/gnuboard4/head.sub.php on line 38

이러한 에러메세지가 왜 뜨는것이죠.
© SIRSOFT
현재 페이지 제일 처음으로