index.html에 최신글 넣기 에러코드...경로
index.html에 파일에 최신글을 넣고 싶습니다.
찾아보니까.
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("basic", "news", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
를 넣으라고 되어있는데..넣고나면 에러가..
Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /home1/ims24/public_html/index.html on line 47
Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/ims24/public_html/index.html on line 47
Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/tmp:/home1/ims24) in /home1/ims24/public_html/index.html on line 48
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /home1/ims24/public_html/index.html on line 48
Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/ims24/public_html/index.html on line 48
Fatal error: Call to undefined function latest() in /home1/ims24/public_html/index.html on line 50
뜹니다.
index.html은 public_html/안에 있고
그누보드는 public_html/gnuboard4 안에 있습니다.
게시판은 기본 스킨을 사용했고 "news"라고 만들었습니다.
index.html을 public_html/gnuboard4 안에 넣고 테스트해보면
아래와 같은 에러가 같이 뜨고,,, 게시판이 출력됩니다.
Warning: Cannot modify header information - headers already sent by (output started at /home1/ims24/public_html/gnuboard4/index.html:7) in /home1/ims24/public_html/gnuboard4/common.php on line 8
도와주세요~
찾아보니까.
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("basic", "news", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
를 넣으라고 되어있는데..넣고나면 에러가..
Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /home1/ims24/public_html/index.html on line 47
Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/ims24/public_html/index.html on line 47
Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/tmp:/home1/ims24) in /home1/ims24/public_html/index.html on line 48
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /home1/ims24/public_html/index.html on line 48
Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/ims24/public_html/index.html on line 48
Fatal error: Call to undefined function latest() in /home1/ims24/public_html/index.html on line 50
뜹니다.
index.html은 public_html/안에 있고
그누보드는 public_html/gnuboard4 안에 있습니다.
게시판은 기본 스킨을 사용했고 "news"라고 만들었습니다.
index.html을 public_html/gnuboard4 안에 넣고 테스트해보면
아래와 같은 에러가 같이 뜨고,,, 게시판이 출력됩니다.
Warning: Cannot modify header information - headers already sent by (output started at /home1/ims24/public_html/gnuboard4/index.html:7) in /home1/ims24/public_html/gnuboard4/common.php on line 8
도와주세요~
댓글 2개
13년 전
common.php 파일의 경로가 잘 못 되어서 그렇습니다.
님 경우
$g4[path] = "gnuboard4";
가 필요합니다.
include_once("./_common.php");
//현재 디렉토리에서 _common.php 을 찾게 됩니다. 따라서
// $g4[path] = "gnuboard4"; 를 한 줄 넣어주고
$g4[path] = "gnuboard4";
include_once("$g4[path]/_common.php");
//이렇게 바꾸면 gnuboard4/_common.php 파일을 찾겠죠
//_common.php파일이 님 경우 /gnuboard4 디렉토리에 있으니까 그렇습니다.
//아래와 같이 해보시겠어요
$g4_path = 'gnuboard4';
require_once $g4_path . '/common.php';
include_once("$g4[path]/lib/latest.lib.php");
님 경우
$g4[path] = "gnuboard4";
가 필요합니다.
include_once("./_common.php");
//현재 디렉토리에서 _common.php 을 찾게 됩니다. 따라서
// $g4[path] = "gnuboard4"; 를 한 줄 넣어주고
$g4[path] = "gnuboard4";
include_once("$g4[path]/_common.php");
//이렇게 바꾸면 gnuboard4/_common.php 파일을 찾겠죠
//_common.php파일이 님 경우 /gnuboard4 디렉토리에 있으니까 그렇습니다.
//아래와 같이 해보시겠어요
$g4_path = 'gnuboard4';
require_once $g4_path . '/common.php';
include_once("$g4[path]/lib/latest.lib.php");
13년 전
include_once("./_common.php");
파일에
$g4_path = ".";
부분문제 아닐까요?
파일에
$g4_path = ".";
부분문제 아닐까요?
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기