IBM developerWorks
           PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Click Here
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old October 12th, 2003, 07:08 PM
stakr stakr is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Drøbak, Norway
Posts: 5 stakr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
include GD on windows

I need to resize pictures on my web site, and I understand that I Need a library called GD for making this work. I’m running an Apache/mysql/php-package called “phptriad2-2-1” and I’m running it on Windows NT and Windows XP OS. Does anybody knows how to install GD, so I can use the image-manipulation functions?

Reply With Quote
  #2  
Old October 12th, 2003, 10:59 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: include GD on windows

you need to modify the php.ini file to tell php to use the GD extension. Add the following line to the php.ini file

extension="php_gd.dll"

then make sure that the file php_gd.dll ids located in the directory specified in the line extension_dir in the in file as well. By default the extension dir will be the default install directory C:php

hope that helps...

Reply With Quote
  #3  
Old October 13th, 2003, 07:42 PM
stakr stakr is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Drøbak, Norway
Posts: 5 stakr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: RE: include GD on windows

Well.. thanks for the tip, but now I get this errormessage:

"Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in c:apachehtdocsupload.php on line 35"

How do I fix this one?

Reply With Quote
  #4  
Old October 14th, 2003, 11:24 AM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: include GD on windows

The manual states that the GD library is available at:

http://www.boutell.com/gd/

I visited the site and there is a version greater than 2.0 there. Just download and replace the file!

Reply With Quote
  #5  
Old October 19th, 2003, 04:11 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: include GD on windows

The lastest php zip file located at:

http://www.php.net/downloads

has the proper dll file...

Reply With Quote
  #6  
Old October 20th, 2003, 07:34 AM
stakr stakr is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Drøbak, Norway
Posts: 5 stakr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: include GD on windows

Thanks!
Now it is working!

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > include GD on windows


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway