php 4.3.3 and gd

Reply

Join Date: Oct 2005
Posts: 17
Reputation: eliauction is an unknown quantity at this point 
Solved Threads: 0
eliauction eliauction is offline Offline
Newbie Poster

php 4.3.3 and gd

 
0
  #1
Jan 4th, 2006
i wrote this basic codes to check against gd library existence:

[PHP]$image = @imagecreate(480, 250) or die ("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate ($im, 0, 0, 0);
$text_color = imagecolorallocate ($im, 255, 0, 0);
imagestring ($im, 255,255,0, "A Simple Text String", $text_color);
header ("Content-type: image/gif");
imagegif($im);[/PHP]

result: none image shown
gd version: 2.0.15
from the phpinfo()
GIF Read Support enabled
JPG Support enabled
PNG Support enabled

when i changed it to png the same thing happened...dumfounded

if i want to upgrade to gd 2.0.33..where do i start..frm the gd site, they mentioned bout compiling it..im using windows...so please help

others spec:
apache
windows
current gd 2.0.15
current php 4.3.3

help me
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 44
Reputation: Ooble is an unknown quantity at this point 
Solved Threads: 5
Ooble's Avatar
Ooble Ooble is offline Offline
Light Poster

Re: php 4.3.3 and gd

 
0
  #2
Jan 4th, 2006
You haven't actually set the background colour - you've just created the object.
[php]imagefill($im, 0, 0, $background_color);[/php]
  1. while(sleeping)
  2. cat_wails();
  3. wake_up();
  4. for(i=0;i<9;i++)
  5. shoot_cat();
  6. rejoice();
  7. goto(bed);
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 17
Reputation: eliauction is an unknown quantity at this point 
Solved Threads: 0
eliauction eliauction is offline Offline
Newbie Poster

Re: php 4.3.3 and gd

 
0
  #3
Jan 5th, 2006
ok..i figure out what it is..the variable is not consistent...
anyway how to upgrade to gd 2.0.33..

another thing..my current gd version supposed to support gif..but when i changed it to content type=gif ..no image appeared...so i have to use png instead..WHY????
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC