this is a problem i havent been able to fix:
i have 4.0.6 on my pc and is running ok. i have edited my php.ini (uncommented php_gd.dll and point to the right directory). my apache runs fine and phpinfo states that my gd (2.0) is also ok and all is enabled. but when i try to create image by calling <img src=button.php?text> i get the image-not-found box with the red cross (ie) displayed. so i went to my button.php and commented the header:
<?
//Header(\"Content-type: image/png\");
$string=implode($argv,\" \");
$im = imageCreateFromPng(\"images/button1.png\");
$orange = ImageColorAllocate($im, 220, 210, 60);
$px = (imagesx($im)-7.5*strlen($string))/2;
ImageString($im,3,$px,9,$string,$orange);
ImagePng($im);
ImageDestroy($im);
?>
THE OUTPUT IS:
Warning: imagecreatefrompng: Unable to open \'images/button1.png\' for reading in c:\foxserv\www\button.php on line 4
Warning: Supplied argument is not a valid Image resource in c:\foxserv\www\button.php on line 5
Warning: Supplied argument is not a valid Image resource in c:\foxserv\www\button.php on line 6
Warning: Supplied argument is not a valid Image resource in c:\foxserv\www\button.php on line 7
Warning: Supplied argument is not a valid Image resource in c:\foxserv\www\button.php on line 8
Warning: Supplied argument is not a valid Image resource in c:\foxserv\www\button.php on line 9
I AM OUT OF IDEAS 🙁