질문 & 답변 게시판
c-disk라는 웹서버와 웹하드용인 제품을 사용하고 있습니다. c-disk의 한계로 부득이 제로보드 4.18을 사용할 수밖에 없습니다. 아래와 같은 소스를 만들어 bbs위에다 올렸습니다. 그런 다음, 제로보드 게시판 상단에는 ../head_index.php로 입력하고 그리고 하단에는 ../foot_index.php을 입력했답니다. 그 결과 아무런 반응이 없는데 그 원인을 알 수가 없으므로 이렇게 질문과 함께 그 자료를 올려보았습니다. 소스를 보시고 잘못된 부분을 지적해주셨으면 고맙겠습니다.
1. 다음은 head_idex개념의 소스입니다.
<?
$_zb_url = "http://도메인/bbs/";
$_zb_path = "/mnt/root/usr/local/htdocs/bbs/";
include $_zb_path."outlogin.php";
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>살터마당-세한31</title>
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<table cellpadding="1" cellspacing="1" width="877">
<tr>
<td width="873" height="10" colspan="2" bgcolor="red">
<p align="center"><font color="red"><span style="font-size:5pt;">0</span></font></p>
</td>
</tr>
<tr>
<td width="168" height="56">
<p align="center"><img src="http://도메인/bbs/images/logo-salteo.jpg" width="166" height="63" border="1" align="top" alt="살터는 자연이란 순우리말입니다."></p>
</td>
<td width="80%" height="56" bgcolor="#009900">
<table border="1" cellspacing="0" width="707" height="60" bordercolor="#666666" bordercolordark="#666666" bordercolorlight="#666666">
<tr>
<td width="701" height="20" bgcolor="red"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="708" height="60">
<param name="movie" value="http://도메인/bbs/images/head_menu.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
<embed width="708" height="60" src="http://도메인/bbs/images/head_menu.swf" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="168" height="87">
<table border="1" cellpadding="0" cellspacing="0" bordercolordark="#666666" bordercolorlight="#666666" width="166">
<tr>
<td width="164" bordercolor="#666666" bordercolorlight="#666666" height="107"> <p align="center"><? print_outlogin("nzeo", 1, 10) ?></p>
</td>
</tr>
</table>
</td>
<td width="702" height="162" row span="5" valign="top">
<table border="1" cellpadding="0" cellspacing="0" bordercolor="#666666" bordercolordark="#666666" bordercolorlight="#666666" width="714">
<tr>
<td width="710" height="201" valign="top">
2. 그리고 아래는 foot_index개념의 소스입니다.
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="168" height="3"> <p><img src="http://도메인/bbs/images/left_title1.gif" width="166" height="20" border="0" alt="가입인사와 자유로운 토론과 알림글이 담긴 곳입니다."></p>
</td>
</tr>
<tr>
<td width="168" height="13">
<p><a href="http://도메인/bbs/zboard.php?id=greeting" target="_top"><img src="http://sehan31.com/bbs/images/left_menu1-1.gif" width="166" height="20" border="0" alt="오붓하게 서로 인사를 나눕시다."></a></p>
</td>
</tr>
<tr>
<td width="168" height="11"> <p><a href="http://도메인/bbs/zboard.php?id=freeboard" target="_parent"><img src="http://도메인/bbs/images/left_menu1-2.gif" width="166" height="20" border="0" alt="벽과 틈이 없는 서로 이야기를 나눕시다."></a></p>
</td>
</tr>
<tr>
<td width="168" height="8"><a href="http://도메인/bbs/zboard.php?id=notice"><img src="http://sehan31.com/bbs/images/left_menu1-3.gif" width="166" height="20" border="0" alt="회원님들게 알림글이 담겨 있습니다."></a></td>
</tr>
<tr>
<td width="873" height="52" colspan="2">
<p align="center"><img src="images/foot_menu1.gif" width="884" height="50" border="0"></p>
</td>
</tr>
</table>
</body>
</html>



../head_index.php
../foot_index.php
위처럼 경로를 지정하면 안되겠죠.
파일이 제로보드 밖에 있을때는 위처럼 하지만
제로보드 폴더안에 있다면
./head_index.php
./foot_index.php
이렇게 해야할듯...
경로파악이 안되면..
/mnt/root/usr/local/htdocs/bbs/head_index.php
/mnt/root/usr/local/htdocs/bbs/foot_index.php
위처럼 해당 파일까지의 절대경로를 가지고 출력을 시켜보세요..