utf8으로 깔아서 인덱스를 프레임 나눴는데요.. 정보
utf8으로 깔아서 인덱스를 프레임 나눴는데요..
관련링크
본문
index.php 소스는...
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php");
$g4['title']='★ 소 담 넷 ★';
?>
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -->
<html>
<head>
<title><?=$g4['title']?></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="Description" content="<?=$g4['title']?>">
</head>
<!-- 주소 숨김 시작 -->
<frameset rows="*" frameborder="NO" border="0" framespacing="0">
<frame src='<?=$g4[path]?>/home.php?xrURL=<?=$_SERVER['HTTP_REFERER']?>"' name="sewdame" scrolling="auto" frameborder="no" marginwidth="0" marginheight="0">
</frameset>
<!-- 주소 숨김 끝 -->
?>
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -->
<html>
<head>
<title><?=$g4['title']?></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="Description" content="<?=$g4['title']?>">
</head>
<!-- 주소 숨김 시작 -->
<frameset rows="*" frameborder="NO" border="0" framespacing="0">
<frame src='<?=$g4[path]?>/home.php?xrURL=<?=$_SERVER['HTTP_REFERER']?>"' name="sewdame" scrolling="auto" frameborder="no" marginwidth="0" marginheight="0">
</frameset>
<!-- 주소 숨김 끝 -->
<noframes>
<body>
</body>
</noframes>
</html>
<body>
</body>
</noframes>
</html>
이렇게 해서 EMEDITOR로 utf8로 저장했는데요...
저장시에 unicode 삽입으로 하면 화면에 뜨고.. 유니코드 삽입 없이 저장하면 안뜨네요..
근데 가장 큰 문제점은.. 제가 프레임 새로 고침시에 첫페이지로 돌아가지 않게 하는 소스인..
<?
$LastModified = gmdate("D d M Y H:i:s", filemtime($HTTP_SERVER_VARS[SCRIPT_FILENAME]));
header("Last-Modified: $LastModified GMT");
header("ETag: \"$LastModified\"");
?>
$LastModified = gmdate("D d M Y H:i:s", filemtime($HTTP_SERVER_VARS[SCRIPT_FILENAME]));
header("Last-Modified: $LastModified GMT");
header("ETag: \"$LastModified\"");
?>
..를 삽입하려고 하는데..
Warning: Cannot modify header information - headers already sent by (output started at /chroot/home/sewdame/public_html/index.php:1) in /chroot/home/sewdame/public_html/index.php on line 3
Warning: Cannot modify header information - headers already sent by (output started at /chroot/home/sewdame/public_html/index.php:1) in /chroot/home/sewdame/public_html/index.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /chroot/home/sewdame/public_html/index.php:1) in /chroot/home/sewdame/public_html/index.php on line 4
이 소스를 index.php 최상단에 넣고 유니코드 삽입으로 저장하면 이런 오류가 떠서요.. ㅠㅁㅠ
유니코드삽입없이 저장하면 역시 페이지가 안뜨구요..
어떻게 저장하고 소스를 어떻게 수정하면 제대로 뜰까요??
ps. 참고로 그누보드의 본래 utf8소스를 그대로 설치하면 페이지가 전혀 뜨지 않았습니다.
이에 http://www.sir.co.kr/bbs/tb.php/g4_tiptech/2497 본 팁의 common.lib.php 를 수정하여서 제대로 설치를 마쳤습니다.
댓글 전체