html에 최근게시물을 넣고싶은데 잘안됩니다. 도와주세요 ㅠ,.ㅠ 정보
html에 최근게시물을 넣고싶은데 잘안됩니다. 도와주세요 ㅠ,.ㅠ본문
HTML페이지에 최근게시물을 넣고 싶은데.. 잘안되네요. ㅠㅠ
어떤구조냐면.. 아래 그림처럼..
public_html/안에 html과, 그누보드4폴더가있어요!

제가 최근게시물관련은 메뉴얼이없어서.. 여기저기 보고한거라서.. 잘모르겟어요..
무슨작업을 했냐면.. 넣고싶은 게시물 html에
상단에!!(head안에)
<?
$g4_path = "gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/head.sub.php");
?>
$g4_path = "gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/head.sub.php");
?>
넣고싶은 td안에!!
<?= latest("basic", "news", 5, 70) ?>
맨~하단에!!
<?
include_once("$g4[path]/tail.sub.php");
?>
include_once("$g4[path]/tail.sub.php");
?>
라고 넣고 다른건.. 하지 않았어요.. (못한거죠.. ㅜㅜ php를 못합니다 ㅠ)
그러니.. ftp올리고 확인하니 뜨는 메세지는
Warning: main(./common.php): failed to open stream: No such file or directory in /home/abps.co.kr/public_html/gnuboard4/_common.php on line 3
Warning: main(): Failed opening './common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/abps.co.kr/public_html/gnuboard4/_common.php on line 3
Warning: main(/lib/latest.lib.php): failed to open stream: No such file or directory in /home/abps.co.kr/public_html/main2.html on line 4
Warning: main(): Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/abps.co.kr/public_html/main2.html on line 4
Warning: main(/head.sub.php): failed to open stream: No such file or directory in /home/abps.co.kr/public_html/main2.html on line 5
Warning: main(): Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/abps.co.kr/public_html/main2.html on line 5
Warning: main(): Failed opening './common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/abps.co.kr/public_html/gnuboard4/_common.php on line 3
Warning: main(/lib/latest.lib.php): failed to open stream: No such file or directory in /home/abps.co.kr/public_html/main2.html on line 4
Warning: main(): Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/abps.co.kr/public_html/main2.html on line 4
Warning: main(/head.sub.php): failed to open stream: No such file or directory in /home/abps.co.kr/public_html/main2.html on line 5
Warning: main(): Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/abps.co.kr/public_html/main2.html on line 5
그리고td안에 넣고싶은곳의 뜨는 에러 메세지는
Fatal error: Call to undefined function: latest() in /home/abps.co.kr/public_html/main2.html on line 247
입니다...
무엇을 더 해야하며.. 어디가 잘못된것일까요 ㅠ,.ㅠ
댓글 전체
_common.php 파일을 만들어 넣어보세요.
<?
$g4_path = "./gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
<?
$g4_path = "./gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
아 그런데.. 최근게시물은 그러니까 나와요^^
근데... ㅠ,.ㅠ top부분엔 역시 메세지가 나와요..
아래같은.. 뭐가 잘못된걸까여? ㅠ,.ㅠ
Warning: Cannot modify header information - headers already sent by (output started at /home/abps.co.kr/public_html/gnuboard4/_common.php:4) in /home/abps.co.kr/public_html/gnuboard4/head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/abps.co.kr/public_html/gnuboard4/_common.php:4) in /home/abps.co.kr/public_html/gnuboard4/head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /home/abps.co.kr/public_html/gnuboard4/_common.php:4) in /home/abps.co.kr/public_html/gnuboard4/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/abps.co.kr/public_html/gnuboard4/_common.php:4) in /home/abps.co.kr/public_html/gnuboard4/head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /home/abps.co.kr/public_html/gnuboard4/_common.php:4) in /home/abps.co.kr/public_html/gnuboard4/head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/abps.co.kr/public_html/gnuboard4/_common.php:4) in /home/abps.co.kr/public_html/gnuboard4/head.sub.php on line 38
head.sub.php 32~38번째 줄엔 이런게 있어요..
header("Content-Type: text/html; charset=$g4[charset]");
$gmnow = gmdate("D, d M Y H:i:s") . " GMT";
header("Expires: 0"); // rfc2616 - Section 14.21
header("Last-Modified: " . $gmnow);
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
?>
근데... ㅠ,.ㅠ top부분엔 역시 메세지가 나와요..
아래같은.. 뭐가 잘못된걸까여? ㅠ,.ㅠ
Warning: Cannot modify header information - headers already sent by (output started at /home/abps.co.kr/public_html/gnuboard4/_common.php:4) in /home/abps.co.kr/public_html/gnuboard4/head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/abps.co.kr/public_html/gnuboard4/_common.php:4) in /home/abps.co.kr/public_html/gnuboard4/head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /home/abps.co.kr/public_html/gnuboard4/_common.php:4) in /home/abps.co.kr/public_html/gnuboard4/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/abps.co.kr/public_html/gnuboard4/_common.php:4) in /home/abps.co.kr/public_html/gnuboard4/head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /home/abps.co.kr/public_html/gnuboard4/_common.php:4) in /home/abps.co.kr/public_html/gnuboard4/head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/abps.co.kr/public_html/gnuboard4/_common.php:4) in /home/abps.co.kr/public_html/gnuboard4/head.sub.php on line 38
head.sub.php 32~38번째 줄엔 이런게 있어요..
header("Content-Type: text/html; charset=$g4[charset]");
$gmnow = gmdate("D, d M Y H:i:s") . " GMT";
header("Expires: 0"); // rfc2616 - Section 14.21
header("Last-Modified: " . $gmnow);
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
?>
<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
감사합니다.. 그렇게 하니.. ㅠ,.ㅠ
이젠 두줄 나와요 ㅠ,.ㅠ
Warning: main(./_common.php): failed to open stream: No such file or directory in /home/abps.co.kr/public_html/main2.html on line 9
Warning: main(): Failed opening './_common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/abps.co.kr/public_html/main2.html on line 9
이렇게...
9번째 줄엔
include_once("$g4_path/_common.php");
이놈이 있어요..
이놈이 잘못되었나요.. 너무 감사하고 죄송하네요..
-------------------------------------------------------
아~~^^
include_once("$g4_path/_common.php");
이부분 경로를 마춰보니 되써요 ^^
감사합니다~^-^ 포인트 드릴게요~ 우하하 정말 감사합니다.
이젠 두줄 나와요 ㅠ,.ㅠ
Warning: main(./_common.php): failed to open stream: No such file or directory in /home/abps.co.kr/public_html/main2.html on line 9
Warning: main(): Failed opening './_common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/abps.co.kr/public_html/main2.html on line 9
이렇게...
9번째 줄엔
include_once("$g4_path/_common.php");
이놈이 있어요..
이놈이 잘못되었나요.. 너무 감사하고 죄송하네요..
-------------------------------------------------------
아~~^^
include_once("$g4_path/_common.php");
이부분 경로를 마춰보니 되써요 ^^
감사합니다~^-^ 포인트 드릴게요~ 우하하 정말 감사합니다.