게시판 설정에서 include 질문입니다. 정보
게시판 설정에서 include 질문입니다.본문
홈피를 만들다가 막혀서 질문하는 초짜입니다.
상단내용인데요, 하단도 마찬가지일거로 생각하고 소스만 올려봅니다.
------------------------------------------------------------
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" align="center">
<table width="900" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="100%" align="center">
<!-- top 시작-->
<?
include("../../include/top.html");
?>
<!-- top 끝-->
</td>
</tr>
<tr>
<td valign="top" width="100%" align="center">
<!-- main contents start -->
<table width="900" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200" align="center" valign="top">
<!-- left 시작-->
<?
include("../../include/left03.html");
?>
<!-- left 끝-->
</td>
<td width="700" align="right" valign="top">
<!-- contents start -->
<table width="680" border="0" cellspacing="0" cellpadding="0" style="margin-top:10px;">
<tr>
<td valign="top" >
<!-- title & history start -->
<table width="680" height="33" background="../../images/title/title_bg.gif" border="0" cellspacing="0" cellpadding="0">
<tr height="33">
<td width="200" valign="middle"><img src="../../images/title/title_sub03_1.gif" border="0" ></td>
<td width="480" align="right" valign="middle" class="m_notice"><a href="/" onfocus='blur()'><img src="images/common/icon_home.gif" border="0" align="absmiddle"></a> > 보험정보 > 보도자료</td>
</tr>
</table>
<!-- title & history end -->
</td>
</tr>
<tr height="550">
<td width="100%" align="center" valign="top" >
<!-- 보도자료 start -->
<table width="670" border="0" cellspacing="0" cellpadding="7">
<tr height="125">
<td align="right" colspan="6">
------------------------------------------------------------------------------
소스보기하면 인클루드한 소스 그대로 출력이 되고 화면상에는 나오지 않습니다.
확장자를 php로 바꾸었는데도 안나오던데 초보에게 광명의 길을 찾아주세요.
상대경로의 그림은 잘 나옵니다.
html 확장자의 경우 중간에 php문이 들어가면 자동으로 해석이 되나요?
댓글 전체
<? 샬라샬라 ?> 구문은 소스보기에서 출력되지 않습니다.
모든것이 다 마찬가지지요
인틀루드 구문형식이 맞는지 여쭤본건데요.. ^^
include해서 가져 온 파일은 php script로 처리됩니다.
다만 <?php로 둘러 쌓인 부분만 그렇게 됩니다.
나머지는 그대로 출력 되는데
<같은 것이 있다면 IE 등에서 html 태그로 처리하려고 하서 안 되면 화면에는 안 보이게 되죠.
정상적으로 설치되지 않아서 그런듯 합니다.