<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("basic", "free", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
이렇게 나와있더라구요
그래서 적용을 하면 오류가 뜹니다.
뭔가 디렉토리 경로가 틀려서 그런거 같은데 어떻게 잡아야 할까요?
index.php 는 루트에 있고
그누보드는 루트에 gnuboard4 라는 폴더 안에 있습니다.
이래저래 경로를 바꿔봐도 답이 안나오네요 ㅜㅜ
아... 죄송합니다. 아래와 같이 오류메시지가 나옵니다.
--------------------------------------------------
Warning: include_once(./common.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/gabotour/www/_common.php on line 3
Warning: include_once() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/gabotour/www/_common.php on line 3
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/gabotour/www/test.php on line 3
Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/gabotour/www/test.php on line 3
Fatal error: Call to undefined function latest() in /home/hosting_users/gabotour/www/test.php on line 4
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("basic", "free", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
이렇게 나와있더라구요
그래서 적용을 하면 오류가 뜹니다.
뭔가 디렉토리 경로가 틀려서 그런거 같은데 어떻게 잡아야 할까요?
index.php 는 루트에 있고
그누보드는 루트에 gnuboard4 라는 폴더 안에 있습니다.
이래저래 경로를 바꿔봐도 답이 안나오네요 ㅜㅜ
아... 죄송합니다. 아래와 같이 오류메시지가 나옵니다.
--------------------------------------------------
Warning: include_once(./common.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/gabotour/www/_common.php on line 3
Warning: include_once() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/gabotour/www/_common.php on line 3
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/gabotour/www/test.php on line 3
Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/gabotour/www/test.php on line 3
Fatal error: Call to undefined function latest() in /home/hosting_users/gabotour/www/test.php on line 4
댓글 3개
환경을 변경하기 어려우시다면 index 페이지에서 아래 처럼 해보세요.
단지 스크립트를 통해서 gnuboard4아래에 있는 index.php 파일을 호출하는 것이거든요.
대신 gnuboard4 아래에 index.php 파일이 있어야 합니다.
다른 것들은 기본적인 것들이구요 스크립트를 주목해 주세요.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>window.location="http://홈피주소/guboard4/index.php";</script>
<title></title>
</head>
</html
단지 스크립트를 통해서 gnuboard4아래에 있는 index.php 파일을 호출하는 것이거든요.
대신 gnuboard4 아래에 index.php 파일이 있어야 합니다.
다른 것들은 기본적인 것들이구요 스크립트를 주목해 주세요.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>window.location="http://홈피주소/guboard4/index.php";</script>
<title></title>
</head>
</html
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기