<? if (!$member['mb_id']) { ?>
<!-- 로그인 이전 -->
<td width="78"><a href="<?=$g4['bbs_path']?>/login.php?url=<?=$urlencode?>"><img src="<?=$g4['path']?>/img/top_m02.gif" width="78" height="31" border="0"></a></td>
<td width="78"><a href="<?=$g4['bbs_path']?>/register.php"><img src="<?=$g4['path']?>/img/top_m03.gif" width="78" height="31" border="0"></a></td>
<? } else { ?>
<!-- 로그인 이후 -->
<td width="78"><a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$g4['path']?>/img/top_m04.gif" width="78" height="31" border="0"></a></td>
<td width="78"><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><img src="<?=$g4['path']?>/img/top_m05.gif" width="78" height="31" border="0"></a></td>
<? } ?>
<!-- 로그인 이전 -->
<td width="78"><a href="<?=$g4['bbs_path']?>/login.php?url=<?=$urlencode?>"><img src="<?=$g4['path']?>/img/top_m02.gif" width="78" height="31" border="0"></a></td>
<td width="78"><a href="<?=$g4['bbs_path']?>/register.php"><img src="<?=$g4['path']?>/img/top_m03.gif" width="78" height="31" border="0"></a></td>
<? } else { ?>
<!-- 로그인 이후 -->
<td width="78"><a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$g4['path']?>/img/top_m04.gif" width="78" height="31" border="0"></a></td>
<td width="78"><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><img src="<?=$g4['path']?>/img/top_m05.gif" width="78" height="31" border="0"></a></td>
<? } ?>
이 부분이 작동을 하지 않는군요.
html로 만들어진 확장자에서는 작동을 하지 않내요. php 문서에서는 되는데
이부분을 html에서도 작동이 되도록 수정이 가능할까요?
댓글을 작성하시려면 로그인이 필요합니다.
댓글 4개
개인서버를 쓰시나요 호스팅이신가요? html 에서는 소스가 그대로 보이는지욤
웹서버 설정에 확장자가 php인것만 실행되라고 되있으면 html은 안됍니다
개인서버이면 아파치설정파일을 수정해주세욤
httpd.conf 의 설정에서 html 확장자를 추가하면 됩니다
예) AddType application/x-httpd-php .htm .html .php .php3 .php4
확장자가 나열한거일때 php적용시켜라 라고 정의 하는부분입니다
참조 : http://www.sir.co.kr/gnuboard/g4_faq.php#04
html 파일에서는 php 프로그램이 실행되지 않도록 웹 서버가 설정 되어 있는 것입니다.
호스팅 업체나, 서버 관리자에게 문의하세요.
이름.html 일경우 php가 실행이 되지만 이름.htm 일경우 php가 실행이 안되는
경우가 있으므로 이름.htm 이라면 이름.php 나 이름.html 로 해보세요.