메인.html
ㄴbbs (이 폴더 안에 그누보드가 깔려있습니다)
ㄴadm
ㄴbbs
ㄴ등등...
ㄴsub폴더
ㄴsub.html
이런 구조인데요. sub.html 에서 최신글을 추출하고싶은데 어떻게 해야하나요?
|
답변 1개 / 댓글 4개
채택된 답변
+20 포인트
2016-02-03 (수) 14:12:59
Copy
<?phpinclude_once('../common.php');include_once(G5_LIB_PATH.'/latest.lib.php'); echo latest("basic", "freeboard", 5, 50); // basic스킨에 게시판명이 freeboard로 가정할 때?>
와 같이 하시면 최신글을 불러올 수 있을 겁니다.
답변에 대한 댓글 4개
2016-02-03 (수) 15:07:33
include_once('../bbs/common.php'); 로 경로를 지정해 보세요.
2016-02-05 (금) 10:07:02
내용은 추출되는데 css가 안먹으면서 추출되는 내용 위에 아래같은 에러문구가 떠요ㅠ0ㅠ
Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 579
Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 581
Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 582
Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 583
Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 584
Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 585
Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 579
Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 581
Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 582
Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 583
Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 584
Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 585
2016-02-05 (금) 11:13:39
<?php
include_once('../bbs/common.php');
include_once(G5_LIB_PATH.'/latest.lib.php');
?>
이 코드는 html태그 사용하기 이전 소스 상단에 넣으셔야 합니다.
include_once('../bbs/common.php');
include_once(G5_LIB_PATH.'/latest.lib.php');
?>
이 코드는 html태그 사용하기 이전 소스 상단에 넣으셔야 합니다.
답변을 작성하려면 로그인이 필요합니다.