Hi all
I have a small problem with ImageCreateFrompng
( On winXP, php 4, IIS, etc'..)
my php file is called from an asp page on IIS,
It works fine, but it's not loading completely untill I click the browser's "STOP" button, then it shows the image (php as image)
Here is the code:
<?
//error_reporting (1023);
Header( "Content-type: image/gif");
$path = "C:/Inetpub/wwwroot/Dev-sites/www.envihaifa.org.il/heb";
$im = ImageCreateFrompng( "../pix/100/map.png");
$data = file("../data/map.txt");
$size = sizeof($data);
for ($i=0;$i<$size;$i++) {
$parts = explode(",", $data[$i]);
imagefill ($im, $parts[0],$parts[1], $parts[2]);
$tmpx = $parts[0]+0;
$tmpy = $parts[1]+0;
$tmps = $parts[3]+0;
imagestring($im,2,$tmpx-3,$tmpy-4,"$tmps",10);
imagestring($im,2,$tmpx-3,$tmpy-4,"$tmps",10);
// imagestring($im,3,$parts[0],$parts[1],"test",1);
}
$time = Chop( "$data[0]" );
// Format is (image pointer,font number(1-5),x,y,string,color index)
imagestring($im,3,16,4,$time,10);
Imagepng($im);
ImageDestroy($im);
?>
and here is the link to the script:
http://www.envihaifa.org.il/heb/test.asp
I simply don't know if the problem is in the script, php installation, IIS configuration, ASP mood, my cat's eyes, etc' ...
PLEASE HELP HERE (nobody seems to help .... for almost a week) ...