Netscape doesn't display the image in the following conditions: 2 files (1 html, 1php) and the html is using the php.
code example:
<!-- the html file
image.html
<img src="script.php?w=100&h=100">
<!-- the php file
script.php
<?
header("Content-Type: image/jpeg");
$w=$HTTP_GET_VARS["w"];
$h=$HTTP_GET_VARS["h"];
$im= ImageCreateTrueColor($w,$h);
$cul=ImageColorAllocate($im,200,200,200);
$im2=imagecreatefromjpeg("something.jpg");
$x=ImageSX($im2);
$y=ImageSY($im2);
$wp=$x/$w;
$hp=$y/$h;
if ($wp<$hp)
{
$w1=round($x/$hp);
$h1=$h;
}
else
{
$w1=$w;
$h1=round($y/$wp);
}
ImageCopyResampled($im,$im2,round(($w-$w1)/2),round(($h-$h1)/2),0,0,$w1,$h1,$x,$y);
imagejpeg($im);
?>
view image.html in netscape and if you have a solution please tell me!!!! help!!!! thanks