첫 화면에 게시판을 불러오려면

  첫 화면은 주로 헤드와 풋트 그리고 몸체를 이루는 최근글 불러오기로 만들지요.

  이번에는 하나의 게시판을 index.php 에서 바로 열리도록 하려니 잘 안되는군요.

  <?
$g4_path = "../bbs4";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/latest.lib.php");

$g4[title] = "수련회 준비 위원회";
include_once("$g4[path]/head_in.php");
?>

<style type="text/css">
<!--
 .form {font: 10pt verdana; BACKGROUND-COLOR:#FFFFFF; COLOR:#222222; BORDER:1x solid #778899}
 .inkform {font: 10pt verdana; BACKGROUND-COLOR:#FFFFFF; COLOR:#000000; BORDER:1x solid #778899}
 .inkhand {font: 10pt verdana; BACKGROUND-COLOR:#ccccff; COLOR:#000000; BORDER:1x solid #778899; cursor:hand}
 .select {font: 10pt 굴림; BACKGROUND-COLOR:#FFFFFF; COLOR:#222222; BORDER:0x solid #778899}
//.style1 {color: #0000FF}
.style4 {color: #0000FF}
.style9 {
    font-size: large;
    color: #990000;
    font-weight: bold;
}
.style10 {
    font-size: 24px;
    font-weight: bold;
    color: #990000;
    background-color: #FFFF00;
}
.style12 {color: #0000FF; font-weight: bold; }
-->
</style>
</head>
<script language="JavaScript">
 
function clearField(field){
    if (field.value == field.defaultValue) {
        field.value = '';
    }
}
function checkField(field){
    if (field.value == '') {
        field.value = field.defaultValue;
    }
}
//-->
</script>

<!-- 메인화면 최신글 시작 -->
<?
include_once("new_mesaj.php");
?>

<br>
<?
include_once("contents.php");
?>


<?
include_once("$g4[path]/tail_in.php");
?>

지금 첫 회면 구성은 이런 식으로 되어 있습니다.
<?
include_once("contents.php");
?>
이 자리에 "http://aaaaa.net/bbs4/bbs/board.php?bo_table=gallery" 라는 게시판을 불러오려고 했는데 계속 에러가 나는군요. 함수를 만들어서 불러와도 이런 에러 메시지가 나옵니다.

  Warning: main(): URL file-access is disabled in the server configuration in /home/galilee/www/bauri/index_2.php on line 52

Warning: main(http://aaaaa.net/bbs4/bbs/board.php?bo_table=slide): failed to open stream: no suitable wrapper could be found in /home/galilee/www/bauri/index_2.php on line 52

Warning: main(): Failed opening 'http://aaaaa.net/bbs4/bbs/board.php?bo_table=slide' for inclusion (include_path='.:/usr/lib/php') in /home/galilee/www/bauri/index_2.php on line 52

  해결책을 알려주시면 대단히 감사하겠습니다.
 
|

댓글 3개

억지로 index.php에 끼워넣는것보다 아래와 같이 프레임을 이용하는것도 방법입니다.

<html>
<head>
<title>프레임을 활용하자~</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>

<frameset rows="0,*" frameborder="NO" border="0" framespacing="0">
<frame name="topFrame" scrolling="NO" noresize src="blank.html" >
<frame name="mainFrame" src="http://aaaaa.net/bbs4/bbs/board.php?bo_table=gallery">
</frameset>
<noframes><body bgcolor="#FFFFFF" text="#000000">

</body></noframes>
</html>
index_2.php on line 52 근처 코드가 궁금하군요.
include는 아마도 안될거에요. iframe이 속편하실 거 같네요.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
19년 전 조회 1,042
19년 전 조회 1,019
19년 전 조회 1,568
19년 전 조회 1,421
19년 전 조회 1,209
19년 전 조회 1,421
19년 전 조회 1,422
19년 전 조회 1,514
19년 전 조회 1,708
19년 전 조회 1,518
19년 전 조회 1,508
19년 전 조회 1,555
19년 전 조회 1,522
꽁달
19년 전 조회 1,267
19년 전 조회 1,514
19년 전 조회 2,918
19년 전 조회 1,217
19년 전 조회 1,582
19년 전 조회 1,239
19년 전 조회 1,548
🐛 버그신고