| | |
php 4.3.3 and gd
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2005
Posts: 17
Reputation:
Solved Threads: 0
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
[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
You haven't actually set the background colour - you've just created the object.
[php]imagefill($im, 0, 0, $background_color);[/php]
[php]imagefill($im, 0, 0, $background_color);[/php]
PHP Syntax (Toggle Plain Text)
while(sleeping) cat_wails(); wake_up(); for(i=0;i<9;i++) shoot_cat(); rejoice(); goto(bed);
![]() |
Similar Threads
- learning php (PHP)
- PHP vs ASP... the big ShOwdOwN (IT Professionals' Lounge)
Other Threads in the PHP Forum
- Previous Thread: Link to website in seperate window
- Next Thread: SMF parsing error
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube





