함수가 실행되지 않는 이유가 뭘까요? 정보
함수가 실행되지 않는 이유가 뭘까요?본문
<? 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에서도 작동이 되도록 수정이 가능할까요?
댓글 전체

php확장자는 되는데 html확장자는 안되는 증상인거가튼데요
개인서버를 쓰시나요 호스팅이신가요? html 에서는 소스가 그대로 보이는지욤
웹서버 설정에 확장자가 php인것만 실행되라고 되있으면 html은 안됍니다
개인서버이면 아파치설정파일을 수정해주세욤
httpd.conf 의 설정에서 html 확장자를 추가하면 됩니다
예) AddType application/x-httpd-php .htm .html .php .php3 .php4
확장자가 나열한거일때 php적용시켜라 라고 정의 하는부분입니다
개인서버를 쓰시나요 호스팅이신가요? html 에서는 소스가 그대로 보이는지욤
웹서버 설정에 확장자가 php인것만 실행되라고 되있으면 html은 안됍니다
개인서버이면 아파치설정파일을 수정해주세욤
httpd.conf 의 설정에서 html 확장자를 추가하면 됩니다
예) AddType application/x-httpd-php .htm .html .php .php3 .php4
확장자가 나열한거일때 php적용시켜라 라고 정의 하는부분입니다

해당화일 상단에 그누보드의 common.php와 lib/outlogin.lib.php를 불러가시면 됩니다.
참조 : http://www.sir.co.kr/gnuboard/g4_faq.php#04
참조 : http://www.sir.co.kr/gnuboard/g4_faq.php#04
php 코드가 그대로 브라우저에서 보인다면
html 파일에서는 php 프로그램이 실행되지 않도록 웹 서버가 설정 되어 있는 것입니다.
호스팅 업체나, 서버 관리자에게 문의하세요.
html 파일에서는 php 프로그램이 실행되지 않도록 웹 서버가 설정 되어 있는 것입니다.
호스팅 업체나, 서버 관리자에게 문의하세요.

서버 환경에 따라서 파일의 확장자가
이름.html 일경우 php가 실행이 되지만 이름.htm 일경우 php가 실행이 안되는
경우가 있으므로 이름.htm 이라면 이름.php 나 이름.html 로 해보세요.
이름.html 일경우 php가 실행이 되지만 이름.htm 일경우 php가 실행이 안되는
경우가 있으므로 이름.htm 이라면 이름.php 나 이름.html 로 해보세요.