|
Posted by "Ross" on 08/22/05 16:02
Hi,
i am trying this out of curiosity and get sme errors
My gd extension is set up in the correct folder.
This is my script
header("Content-type: image/png");
$string = 'hello';
$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);
Warning: imagecreatefrompng(images/button1.png)
[function.imagecreatefrompng]: failed to open stream: No such file or
directory in c:\Inetpub\wwwroot\blue-fly\contact.php on line 7
Warning: imagecolorallocate(): supplied argument is not a valid Image
resource in c:\Inetpub\wwwroot\blue-fly\contact.php on line 8
Warning: imagesx(): supplied argument is not a valid Image resource in
c:\Inetpub\wwwroot\blue-fly\contact.php on line 9
Warning: imagestring(): supplied argument is not a valid Image resource in
c:\Inetpub\wwwroot\blue-fly\contact.php on line 10
Warning: imagepng(): supplied argument is not a valid Image resource in
c:\Inetpub\wwwroot\blue-fly\contact.php on line 11
Warning: imagedestroy(): supplied argument is not a valid Image resource in
c:\Inetpub\wwwroot\blue-fly\contact.php on line 12
[Back to original message]
|