PHP and GD-LIB

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
Coyote
Forum Newbie
Posts: 4
Joined: Thu May 30, 2002 6:26 am

PHP and GD-LIB

Post by Coyote »

I am running IIS5 and PHP 4.2.0 - the problems is that I need to place text on an image :( but I dont have GDlib installed.

Can anybody tell me where I can find a compiled binary version of GDlib and an install tutorial please :)

Thanks for taking the time to read this.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

it's in the distribution of php for win32. add 'extension=php_gd2.dll' to your php.ini. The .dll is in <php>\extension. Since this is gd 2.xx there is no support for gif-images anymore.
Coyote
Forum Newbie
Posts: 4
Joined: Thu May 30, 2002 6:26 am

Post by Coyote »

Thanks for answering Volka.

I found that but when I changed it - it hung the browser :(

I am running PHP as a CGI module - do I have to change to ISAPI?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

if it is possible to change to isapi do so. it's faster, it's smarter - it's better at all ;) i.e. php lacks some of the auth-information if it is running as cgi on IIS.
---
did it hung your browser or the request?
Coyote
Forum Newbie
Posts: 4
Joined: Thu May 30, 2002 6:26 am

Post by Coyote »

Ok, I will change it to ISAPI today :) thanks for the tip.

and yes it hung on the request :(

Its the first time ive installed PHP on an W2K box.... SO its probably something Ive done.

I'll see if i can clean out the CGI install and start again :)

Thanks for taking the time to help me :D
Post Reply