corbin Posted July 10, 2006 Share Posted July 10, 2006 Gah! I know something I'm doing is wrong... I just dont know what. My PHP wont recognize the funtion imageCreateTrueColor... Can someone tell me why... The script I'm using right now is just copied and pasted from php.net while im tryin to get this to work......[code]<?phpheader ("Content-type: image/png");$im = @imagecreatetruecolor(50, 100) or die("Cannot Initialize new GD image stream");$text_color = imagecolorallocate($im, 233, 14, 91);imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);imagepng($im);imagedestroy($im);?> [/code]edit: Forgot to say Apache 2.0.58 PHP 5.1.1 Link to comment https://forums.phpfreaks.com/topic/14139-imagecreatetruecolor/ Share on other sites More sharing options...
redarrow Posted July 10, 2006 Share Posted July 10, 2006 you got to enable gd look in the php.ini your see a list with the #gd, uncomment it so gd is enabled know try ok.tested the code works fine ok. Link to comment https://forums.phpfreaks.com/topic/14139-imagecreatetruecolor/#findComment-55516 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.