Hi,
My first script generates .jpg images and saves them in some catalog on my server. The second script should read .jpg file and send it as an output to browser. Here is it :
[php]<?php
header(‘Content-type: image/jpg’);
$i = $_GET[‘i’];
$uid = $_GET[‘uid’];
if (file_exists(“graph/$uid/p$i.jpg”)){
readfile(“graph/$uid/p$i.jpg”);
}
else { readfile(“empty.jpg”) ; }
?>[/php]
Everything works just fine besides the time which takes to output images. Let’s say when the first script save image in the catalogue, the second script has to be run few times (around 15 seconds) to display correct image. Do anyone know where is the problem ?