database.sarang.net
UserID
Passwd
Database
DBMS
ㆍMySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
MySQL Q&A 2566 게시물 읽기
No. 2566
Re: php소스가 그대로 보여요?
작성자
정재익
작성일
2000-07-11 21:31
조회수
5,437

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(); ?>

>

>

> 정말 이상하죠..

[Top]
No.
제목
작성자
작성일
조회
2568# bash:mysql: command not found
백기열
2000-07-11
2832
2572┕>Re: # bash:mysql: command not found
정재익
2000-07-11 22:10:45
2420
2563# mysql DB 설정을 알고 싶어요
신동선
2000-07-11
2030
2564┕>Re: # mysql DB 설정을 알고 싶어요
정재익
2000-07-11 21:27:06
2207
2562# mysql 실행 문의급합
김진성
2000-07-11
2019
2565┕>Re: # mysql 실행 문의급합
정재익
2000-07-11 21:29:34
2020
2561php소스가 그대로 보여요?
kang
2000-07-11
2750
2566┕>Re: php소스가 그대로 보여요?
정재익
2000-07-11 21:31:43
5437
2577 ┕>Re: Re: php소스가 그대로 보여요?
함용대
2000-07-11 23:57:49
4200
2560mysql과 php연동이 됐는지 어떻게 알아요.
바보
2000-07-11
2269
2567┕>Re: mysql과 php연동이 됐는지 어떻게 알아요.
정재익
2000-07-11 21:34:53
1997
2557perl로 mysql 사용한 예제 프로그램이 있으면 좀 구할수 없을까요
펄펄펄
2000-07-11
1826
2714┕>Re: perl로 mysql 사용한 예제 프로그램이 있으면 좀 구할수 없을까요
김성수
2000-07-19 11:52:24
1897
2556# mysql 3.22.25이상 버전에서 configure문제...
박미란
2000-07-11
2006
2569┕>Re: # mysql 3.22.25이상 버전에서 configure문제...
정재익
2000-07-11 22:07:27
2212
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.022초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다