I'm trying to create jpeg picture pixel by pixel. Here's the part of code I am using:
$image=imagecreatetruecolor($hori,$vert);
for ($i=1;$i<=$vert;$i++)
{
for ($j=1;$j<=$hori;$j++)
{
imagesetpixel($image,$hori-1,$vert-1,$color);
}
}
imagejpeg($image,"map.jpg",100);
imagedestroy($image);
print "<img src=map.jpg>";
im getting error like this:
Warning: imagejpeg(): Unable to open 'map.jpg' for writing in C:\Inetpub\wwwroot\map\index.php on line
im using Windows XP with PHP 4.3.2 on IIS included with windows.
phpinfo() says that GD is working (bundled 2.0.12 compatible) and jpeg support is enabled. Not sure what other info might be useful to solve my problem.
thanx for helpin me out.