Reply to imagecreatefromstring

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация