Apache Server 설정에서 AddType 을 해 주지 않은 것 같습니다.
httpd.conf 파일에 다음 행
AddType application/x-httpd-php3 .php3
이런 줄이 포함되어 있는지 확인해 보시기 바랍니다.
> ♡ 고숫님들 안녕하세요..
> 제가 회원관리 공부를 하는데.. 소스가 그대로 들어나는 허망한
> 사태를 맞았습니다.
> 다 들어 나는 것도 아니고 일부만.. 정말 이해하기 힘듬 ~^~
> 원본 소스(index.html)에서 include로 파일을 읽었는데...
> 모두 <?php로 시작하고 ?>로 끝남니다. ---> 이상 없는것 같음.
>
> 아래아 index.html 소스와 결과를 올림니다.
> (염치 없지만 도움을 부탁 드림니다. )
>
> 소스(index.html) :
> <?php
> include ("../auth.inc");
> include ("../common/globalconfig.inc");
> include ("../common/globalfunction.php");
> include ("../auth/globalauth.php");
>
> $html_title="회원페이지";
>
> HTML_Open($html_title,$PageForeColor,$PageBackColor);
>
> echo("<table border='0' cellpadding='0' cellspacing='0' valign='top' bgcolor='$PageBackColor' w
> idth='$PageWidth'>
");
> echo("<tr><td valign='top'>
");
>
> switch($mode)
> {
> case 'registerform': include "registerform.php"; break;
> case 'register': include "register.php"; break;
> case 'register_ok': include "register_ok.php"; break;
> case 'editform': include "editform.php"; break;
> case 'edit': include "edit.php"; break;
> case 'changepasswdform': include "changepasswdform.php"; break;
> case 'changepasswd': include "changepasswd.php"; break;
> case 'view': include "view.php"; break;
> default: include "not_logined.php"; break;
> }
>
> echo("</td></tr>
");
> echo("</table>
");
> HTML_Bottom("Copyright(C) 2000, KYG",$PageForeColor,$PageBackColor,$PageWidth);
> HTML_Close();
> ?>
>
>
> 결과(ie에서 본 것입니다.):
>
>
"); echo("
"); switch($mode) { case 'registerform': include "registerform.php"; break; case '
> register': include "register.php"; break; case 'register_ok': include "register_ok.php"; break;
> case 'editform': include "editform.php"; break; case 'edit': include "edit.php"; break; case 'ch
> angepasswdform': include "changepasswdform.php"; break; case 'changepasswd': include "changepass
> wd.php"; break; case 'view': include "view.php"; break; default: include "not_logined.php"; brea
> k; } echo("
"); echo("
"); HTML_Bottom("Copyright(C) 2000, KYG",$PageForeColor,$PageBackColor,
> $PageWidth); HTML_Close(); ?>
>
>
> 정말 이상하죠..
|