Jump to content


This topic is now archived and is closed to further replies.



Recommended Posts

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......

header ("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);
?> [/code]

edit:  Forgot to say Apache 2.0.58 PHP 5.1.1

Share this post

Link to post
Share on other sites
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.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.