I'm running PHP 4.0.4pl1 under Apache in Win98 as a development and testing box. I have GD 1.6.2+ and zlib 1.1.3 running fully functional in this environment.
The example script which creates a basic green square and outputs to the browser as a PNG:
<?php
Header("Content-type: image/png");
$im = ImageCreate(220,210);
$vert = ImageColorAllocate($im, 0, 255, 00);
ImagePng($im);
ImageDestroy($im);
?>
This script works fine on my development box, but when I upload the script to the server hosting my site under IIS 4.0 with identical versions of PHP, GD, and zlib, I recieve the following error msg.
"Warning: imagepng: unable to open temporary file in d:\www.mydomainname.com\testgd.php on line 5"
Same deal for imageJpeg.
The directory the script is in and the script itself have the permissions for all users wide open. I've seen this error message floating around the forum, usually in combination with an IIS setup. Anyone have a solution?
C'mon, I'm too young to be losing this much hair.