Working with ImageCreate in PHP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jwang
Forum Newbie
Posts: 8
Joined: Thu Oct 23, 2003 2:47 am

Working with ImageCreate in PHP?

Post by jwang »

How can I use the GD library for create image in PHP.
I have tried to config PHP.ini with extension = php_gd.dll but apache run with error not found gd.dll. I have been download the GD library and I can't config this.
Please help me! Thanks!
User avatar
Pointybeard
Forum Commoner
Posts: 71
Joined: Wed Sep 03, 2003 7:23 pm
Location: Brisbane, AUS
Contact:

Post by Pointybeard »

as far as i know, GD2 is bundled with php, was with mine..... http://www.php.net
jwang
Forum Newbie
Posts: 8
Joined: Thu Oct 23, 2003 2:47 am

Post by jwang »

Why it doesn't run?
The Apache always alert not found gd2.dll?
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

Pointybeard, what version of PHP did you install? just curious i have 4.3.4, and it didn't come with GD2.... afaik... i may be wrong...
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

ahh, nvm i had all my extensions disabled, and then my extension dir was wrong anyways! lol jwang, opent he php.ini file, and edit the extension_dir to match wherever you installed PHP to and the extension direct (c:\php\extensions\) and then scroll down a bit and turn on the extensions you want...


However i'm having problems with php_mcrypt.dll... it says it can't find it but its int he extension dir,a nd it found gd2.dll... wierd huh?
User avatar
Pointybeard
Forum Commoner
Posts: 71
Joined: Wed Sep 03, 2003 7:23 pm
Location: Brisbane, AUS
Contact:

Post by Pointybeard »

hmm..lemme see......4.3.3..i havent upgraded to 4.3.4 yet....well heres what info tells me...

gd
GD Support enabled
GD Version bundled (2.0.15 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

I honestly cant remember installing GD...it just worked for me.... *shrugs*

-PB
User avatar
Pointybeard
Forum Commoner
Posts: 71
Joined: Wed Sep 03, 2003 7:23 pm
Location: Brisbane, AUS
Contact:

Post by Pointybeard »

ahh, nvm i had all my extensions disabled
that would do it ;)
Post Reply