묻고답하기

phpschool과 여기 저기를 돌아다녀본 결과
<?php
session_cache_limiter('+ '+ 'none');
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
$img = getImagesize('a.gif');
header("Content-type: $img[mime]");
echo file_get_contents('a.gif');
?>
이렇게 하면 된다는 말을 들었는대
실제 제로 보드에서 적용할때

<script language='javascript'>
function screenShot(imgSRC){
var WO;
imgSRC = escape(imgSRC) <!---URL인코딩--->
imgSRC = "<?=$dir?>/view_image_content.php?filename=" + imgSRC;
WO = window.open(imgSRC,'screenshot','scrollbars=no,toolbars=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,left=20,top=20');
WO.focus();
}
</script>

에서처럼 이미지를 screenShot 으로 스크립으로 명령하여,

<? if(!eregi("board",$a_file_link1) ){ ?>
<? if($upload_image1 != ""){ ?>
<tr>
<td colspan='2' align='center' style='padding-top:5px; padding-left:5px;'>
<?=$a_img1?><img src="<?=$screenshot1?>" name=zb_target_resize border=0 <?=$imgWidth1?>></a>
</td>
</tr>

의 보드의 이미지를 팝업할때에 팝업되는 팝업창에서 위의 이미지 캐싱안하는 소스의

$img = getImagesize('a.gif');
header("Content-type: $img[mime]");
echo file_get_contents('a.gif');

에서의 a.gif 는 어떻게 수정해야 하는지 가르쳐 주세요~