Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 GD...w/e! HELP!
Index -> Programming, PHP -> PHP Help
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Amailer




PostPosted: Sat Sep 06, 2003 9:19 pm   Post subject: GD...w/e! HELP!

code:

<?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);
?>



Error:
code:

The image "http://termix-zero.ath.cx/scripts/GD.php" cannot be displayed, because it contains errors.


Or in other words (IE) broken link.

WHY!
HELP!
[script from php.net]

-- http://termix-zero.ath.cx/scripts/GD.php ---
See whats wrong :S!

PHP VERSION: 4.3.3 (w/e the latest is)
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sat Sep 06, 2003 11:31 pm   Post subject: (No subject)

does IE support png image format?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
octopi




PostPosted: Sun Sep 07, 2003 1:07 am   Post subject: (No subject)

You don't have gd installed.


IE does support png's, except for transparent ones, which it shows the transparent part as grey. (50/50 w/b)
Asok




PostPosted: Sun Sep 07, 2003 1:25 am   Post subject: (No subject)

.php extention is not an image extention
Blade




PostPosted: Sun Sep 07, 2003 3:03 am   Post subject: (No subject)

no, but you can create images with php....
Posted Image, might have been reduced in size. Click Image to view fullscreen.
http://avatar.dblade.sytes.net/test.php
.... meh its nothing right now, but i'm learning how to do fractals..

its alot like octopi's avatar... his is a perl script
Amailer




PostPosted: Sun Sep 07, 2003 6:31 am   Post subject: (No subject)

where can i get it to install it?
Or it is in the php.ini or some dll???idk!
octopi




PostPosted: Sun Sep 07, 2003 7:08 am   Post subject: (No subject)

remove the ';' from the line in your php.ini file that looks similar to below


extention=*gd*.dll

I don't know the specific name...but it can't be too hard to find.

Make sure you have the proper dll in the folder.
Amailer




PostPosted: Sun Sep 07, 2003 7:59 am   Post subject: (No subject)

SAYS MODULE NOT FOUND!!! AHAHAH!
extension=php_gd.dll

ahha grr help!
octopi




PostPosted: Sun Sep 07, 2003 1:50 pm   Post subject: (No subject)

Make sure the php_gd.dll is in the extention_dir, and make sure you have the file....if you don't find one that is compatible with your version of php, or else you will get insane errors.
Amailer




PostPosted: Sun Sep 07, 2003 2:24 pm   Post subject: (No subject)

rit..lets find that dir brb
Err no such dir..where is that dir suppose to be?

and i don't havee the php_gd.dll or w/e
Homer_simpson




PostPosted: Sun Sep 07, 2003 3:59 pm   Post subject: (No subject)

here u go


php_gd.zip
 Description:

Download
 Filename:  php_gd.zip
 Filesize:  159.4 KB
 Downloaded:  183 Time(s)

Amailer




PostPosted: Sun Sep 07, 2003 4:09 pm   Post subject: (No subject)

, thanks dude.
Now the extensions dir..where does that have to be in?
Amailer




PostPosted: Sun Sep 07, 2003 4:13 pm   Post subject: (No subject)

ERROR!
octopi




PostPosted: Sun Sep 07, 2003 6:31 pm   Post subject: (No subject)

Seriously, does no one listen?

octopi wrote:
Make sure the php_gd.dll is in the extention_dir, and make sure you have the file....if you don't find one that is compatible with your version of php, or else you will get insane errors.
Amailer




PostPosted: Sun Sep 07, 2003 6:56 pm   Post subject: (No subject)

No hehe j/k
Ok, i need 1 for v4.3.3!

Where can i get it?
Display posts from previous:   
   Index -> Programming, PHP -> PHP Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 2  [ 18 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: