최신글 출력 질문드립니다.ㅠㅠ 정보
최신글 출력 질문드립니다.ㅠㅠ본문
초보입니다. 아무리 검색해서 따라해 봐도 잘 모르겠습니다. 정말 여기저기 뒤지며 현재 7시간째입니다. 이젠 제 머리를 의심하기 까지하며 버티다버티다 질문드립니다. 현재 ftp로 계정에 들어가면 cgi-bin 폴더와 public_html 폴더 두개가 있습니다.index1.html은 public_html폴더에 들어가 있고 그누 보드는
/cgi-bin/gnuboard4폴더에 들어가 있습니다.
그리고 출력할 페이지 index1.html 소스 그대로 올려봅니다. 뭐가 문제인지 속시원히 알고싶습니다.
부탁드립니다. ㅜㅜ
<!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">
<?
$g4_path="./cgi-bin/gnuboard4";
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>무제 문서</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="900" style="height:100%;" align="center">
<tr>
<td><p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<table width="900" height="300" align="center" background="images/main1.jpg">
<tr>
<td> </td>
</tr>
</table>
<table width="450" height="350" align="left">
<tr>
<td><?echo latest("basic","sky02",5,70);?></td>
</tr>
</table>
<table width="450" height="350" align="right">
<tr>
<td> </td>
</tr>
</table>
<p> </p></td>
</tr>
</table>
</body>
</html>
/cgi-bin/gnuboard4폴더에 들어가 있습니다.
그리고 출력할 페이지 index1.html 소스 그대로 올려봅니다. 뭐가 문제인지 속시원히 알고싶습니다.
부탁드립니다. ㅜㅜ
<!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">
<?
$g4_path="./cgi-bin/gnuboard4";
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>무제 문서</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="900" style="height:100%;" align="center">
<tr>
<td><p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<table width="900" height="300" align="center" background="images/main1.jpg">
<tr>
<td> </td>
</tr>
</table>
<table width="450" height="350" align="left">
<tr>
<td><?echo latest("basic","sky02",5,70);?></td>
</tr>
</table>
<table width="450" height="350" align="right">
<tr>
<td> </td>
</tr>
</table>
<p> </p></td>
</tr>
</table>
</body>
</html>
댓글 전체
정리해보면
해당 계정에
cgi-bin 폴더(최상위)
public_html 폴더(최상위)
가 있고
그누보드는 /cgi-bin/gnuboard4/ 폴더안에 있으며
올려주신 소스는 public_html 폴더안에있단 말씀이신거 같네요
그럴 경우
$g4_path="./cgi-bin/gnuboard4"; <= 이걸 이렇게 잡으심 안되고요
$g4_path="../cgi-bin/gnuboard4"; <= 이렇게 잡으셔야 됩니다.
해당 계정에
cgi-bin 폴더(최상위)
public_html 폴더(최상위)
가 있고
그누보드는 /cgi-bin/gnuboard4/ 폴더안에 있으며
올려주신 소스는 public_html 폴더안에있단 말씀이신거 같네요
그럴 경우
$g4_path="./cgi-bin/gnuboard4"; <= 이걸 이렇게 잡으심 안되고요
$g4_path="../cgi-bin/gnuboard4"; <= 이렇게 잡으셔야 됩니다.