아래의 내용에서 변수명만 $g5[path] 로 바꿔서 해봤는데 안되더군요...
php 잘 아시는 분 없나요? 몇일 전부터 여기에 묻는데 속 시원한 대답을 해주시는 분이 아무도 없네요...
------------제가 작성한 내용-----------
_common.php
<?
define('_INDEX_', true);
$g5[path]="./php"; //gnuboard5 설치경로
include_once("$g5[path]/common.php");
?>
index.html
<!doctype html>
<?
include_once("./_common.php");
include_once("$g5[path]/head.sub.php");
include_once("$g5[path]/lib/outlogin.lib.php");
include_once("$g5[path]/lib/poll.lib.php");
include_once("$g5[path]/lib/visit.lib.php");
include_once("$g5[path]/lib/connect.lib.php");
include_once("$g5[path]/lib/popular.lib.php");
include_once("$g5[path]/lib/latest.lib.php");
?>
---------------참고로 한 그누보드 4 팁 자료실 내용----------------------
1. 작성하는 경로에 _common.php 파일 작성
<?
$intra_path = "./../gnu"; // common.php 의 상대 경로
include_once("$intra_path/common.php");
?>
2. 표현하고자 하는 파일에 아래 내용 포함 후 사용
<?
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
참고하세요
_common.php파일 $intra_path를 $g4[path]로 변경하셔야 합니다.
수정하셔서 잘못 올리신듯
php 잘 아시는 분 없나요? 몇일 전부터 여기에 묻는데 속 시원한 대답을 해주시는 분이 아무도 없네요...
------------제가 작성한 내용-----------
_common.php
<?
define('_INDEX_', true);
$g5[path]="./php"; //gnuboard5 설치경로
include_once("$g5[path]/common.php");
?>
index.html
<!doctype html>
<?
include_once("./_common.php");
include_once("$g5[path]/head.sub.php");
include_once("$g5[path]/lib/outlogin.lib.php");
include_once("$g5[path]/lib/poll.lib.php");
include_once("$g5[path]/lib/visit.lib.php");
include_once("$g5[path]/lib/connect.lib.php");
include_once("$g5[path]/lib/popular.lib.php");
include_once("$g5[path]/lib/latest.lib.php");
?>
---------------참고로 한 그누보드 4 팁 자료실 내용----------------------
1. 작성하는 경로에 _common.php 파일 작성
<?
$intra_path = "./../gnu"; // common.php 의 상대 경로
include_once("$intra_path/common.php");
?>
2. 표현하고자 하는 파일에 아래 내용 포함 후 사용
<?
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
참고하세요
_common.php파일 $intra_path를 $g4[path]로 변경하셔야 합니다.
수정하셔서 잘못 올리신듯
댓글 4개
_common.php
<?php
include_once('./php/common.php');
?>
index.html
<?php
define('_INDEX_', true);
include_once('./_common.php');
$g5[path]="./php"; // gnuboard5 설치경로
include_once("$g5[path]/head.sub.php");
include_once("$g5[path]/lib/outlogin.lib.php");
include_once("$g5[path]/lib/poll.lib.php");
include_once("$g5[path]/lib/visit.lib.php");
include_once("$g5[path]/lib/connect.lib.php");
include_once("$g5[path]/lib/popular.lib.php");
include_once("$g5[path]/lib/latest.lib.php");
?>
<h2 class="sound_only">최신글</h2>
<!-- 최신글 시작 { -->
<?php
// 최신글
$sql = " select bo_table from `{$g5['board_table']}` a left join `{$g5['group_table']}` b on (a.gr_id=b.gr_id) where a.bo_device <> 'mobile' order by b.gr_order, a.bo_order ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
if ($i%2==1) $lt_style = "margin-left:20px";
else $lt_style = "";
?>
<div style="float:left;<?php echo $lt_style ?>">
<?php
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest("basic", $row['bo_table'], 5, 25);
?>
</div>
<?php
}
?>
<!-- } 최신글 끝 -->
<?php
include_once('./php/common.php');
?>
index.html
<?php
define('_INDEX_', true);
include_once('./_common.php');
$g5[path]="./php"; // gnuboard5 설치경로
include_once("$g5[path]/head.sub.php");
include_once("$g5[path]/lib/outlogin.lib.php");
include_once("$g5[path]/lib/poll.lib.php");
include_once("$g5[path]/lib/visit.lib.php");
include_once("$g5[path]/lib/connect.lib.php");
include_once("$g5[path]/lib/popular.lib.php");
include_once("$g5[path]/lib/latest.lib.php");
?>
<h2 class="sound_only">최신글</h2>
<!-- 최신글 시작 { -->
<?php
// 최신글
$sql = " select bo_table from `{$g5['board_table']}` a left join `{$g5['group_table']}` b on (a.gr_id=b.gr_id) where a.bo_device <> 'mobile' order by b.gr_order, a.bo_order ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
if ($i%2==1) $lt_style = "margin-left:20px";
else $lt_style = "";
?>
<div style="float:left;<?php echo $lt_style ?>">
<?php
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest("basic", $row['bo_table'], 5, 25);
?>
</div>
<?php
}
?>
<!-- } 최신글 끝 -->
Warning: Cannot modify header information - headers already sent by (output started at /www/사이트 주소/index.html:2) in /www/careforaging_net/php/common.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at /www/사이트 주소/index.html:2) in /www/careforaging_net/php/common.php on line 478
Warning: Cannot modify header information - headers already sent by (output started at /www/사이트 주소/index.html:2) in /www/careforaging_net/php/common.php on line 480
Warning: Cannot modify header information - headers already sent by (output started at /www/사이트 주소/index.html:2) in /www/careforaging_net/php/common.php on line 481
Warning: Cannot modify header information - headers already sent by (output started at /www/사이트 주소/index.html:2) in /www/careforaging_net/php/common.php on line 482
Warning: Cannot modify header information - headers already sent by (output started at /www/사이트 주소/index.html:2) in /www/careforaging_net/php/common.php on line 483
Warning: Cannot modify header information - headers already sent by (output started at /www/사이트 주소/index.html:2) in /www/careforaging_net/php/common.php on line 484
�몄씤 蹂듭� 愿�� �뚯떇
寃뚯떆臾쇱씠 �놁뒿�덈떎.
이렇게 나옵니다... 안되나봐요...
신경써주셔서 감사합니다.....
Warning: Cannot modify header information - headers already sent by (output started at /www/사이트 주소/index.html:2) in /www/careforaging_net/php/common.php on line 478
Warning: Cannot modify header information - headers already sent by (output started at /www/사이트 주소/index.html:2) in /www/careforaging_net/php/common.php on line 480
Warning: Cannot modify header information - headers already sent by (output started at /www/사이트 주소/index.html:2) in /www/careforaging_net/php/common.php on line 481
Warning: Cannot modify header information - headers already sent by (output started at /www/사이트 주소/index.html:2) in /www/careforaging_net/php/common.php on line 482
Warning: Cannot modify header information - headers already sent by (output started at /www/사이트 주소/index.html:2) in /www/careforaging_net/php/common.php on line 483
Warning: Cannot modify header information - headers already sent by (output started at /www/사이트 주소/index.html:2) in /www/careforaging_net/php/common.php on line 484
�몄씤 蹂듭� 愿�� �뚯떇
寃뚯떆臾쇱씠 �놁뒿�덈떎.
이렇게 나옵니다... 안되나봐요...
신경써주셔서 감사합니다.....
게시글 목록
| 번호 | 제목 |
|---|---|
| 4184 | |
| 4181 | |
| 4180 | |
| 4169 | |
| 4155 | |
| 4154 | |
| 4153 | |
| 4148 | |
| 4147 | |
| 4140 | |
| 4133 | |
| 4126 | |
| 4125 | |
| 4124 | |
| 4123 | |
| 4121 | |
| 4120 | |
| 4116 | |
| 4108 | |
| 4106 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기