프레임으로 나눠진 사이트에서 index 파일의 제일 상단에 아래의 내용처럼 삽입해 주면 페이지 새로고침시(F5) 원래있던 곳에서 페이지가 리로딩 된다.
<?
$LastModified = gmdate("D d M Y H:i:s", filemtime($HTTP_SERVER_VARS[SCRIPT_FILENAME]));
header("Last-Modified: $LastModified GMT");
header("ETag: \"$LastModified\"");
?>
<html>
<frameset rows="0,*" frameborder=0 framespacing=0 border=0>
<frame name="top" src="top.html" noresize marginwidth=0 marginheight=0 target=main>
<frame name="main" src="main.html" marginwidth=0 marginheight=0 target=main>
</frameset>
</html>
<?
$LastModified = gmdate("D d M Y H:i:s", filemtime($HTTP_SERVER_VARS[SCRIPT_FILENAME]));
header("Last-Modified: $LastModified GMT");
header("ETag: \"$LastModified\"");
?>
<html>
<frameset rows="0,*" frameborder=0 framespacing=0 border=0>
<frame name="top" src="top.html" noresize marginwidth=0 marginheight=0 target=main>
<frame name="main" src="main.html" marginwidth=0 marginheight=0 target=main>
</frameset>
</html>
'프로그래밍 > PHP' 카테고리의 다른 글
| 디렉토리내의 모든 파일 일괄 삭제하기 (0) | 2006/07/10 |
|---|---|
| 디렉토리내의 모든파일을 다른 디렉토리로 옮기는 함수 (0) | 2006/07/10 |
| 디렉토리 만들기 함수 (0) | 2006/07/10 |
| 이미지 프린트하기 (0) | 2006/07/10 |
| 정규표현식 (0) | 2006/07/09 |
| 프레임으로 나눠진 사이트에서의 새로고침 (0) | 2006/07/09 |



