"; echo filemtime($in); exit;*/ header("Content-type: image/jpeg"); while(true) { $t = time() - filemtime($in); if( $t > 3 ) { copy($in,$out); break; } // if($t >= 5) break; } readfile($out); flush(); exit; //$f = fopen($out,'r'); //$d= fread($f,99999999); //echo $d; //fclose($f); //exit; //flush(); //exit; //sleep(3); /* if($test[0] == 1280 and $test[1]==960 and filesize($in2) > 260000) { copy($in2,$out); } if(!file_exists($out)) { copy($in2,$out); } */