Jump to content


Photo

imageCreateTrueColor()


  • Please log in to reply
1 reply to this topic

#1 corbin

corbin
  • Staff Alumni
  • Advanced Member
  • 8,129 posts

Posted 10 July 2006 - 03:55 AM

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

<?php
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);
imagepng($im);
imagedestroy($im);
?>

edit:  Forgot to say Apache 2.0.58 PHP 5.1.1
Why doesn't anyone ever say hi, hey, or whad up world?

#2 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 10 July 2006 - 01:10 PM

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.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users