how to install GD2 library
Moderator: General Moderators
- itsmani1
- Forum Regular
- Posts: 791
- Joined: Mon Sep 29, 2003 2:26 am
- Location: Islamabad Pakistan
- Contact:
ya its loading with out any issuesmpdawg wrote:Is PHP loading now? What problem are you having?
my every thing is working but when i try to use the script it says:
:::::::::::::::::::::::::::::::::::::::::::::::::
RESIZED IMAGE:
<img src="
Fatal error: Call to undefined function: imagecreatefromjpeg() in c:\apache\htdocs\image_resize\image_resize\sample_of_script_in_use\resize.php on line 32
- itsmani1
- Forum Regular
- Posts: 791
- Joined: Mon Sep 29, 2003 2:26 am
- Location: Islamabad Pakistan
- Contact:
there is no problem to my ini filesmpdawg wrote:That is odd. You don't get any errors from PHP when you restart Apache? And you have added the extension for GD to your php.ini?
Look at phpinfo and verify that the ini it is using is the same one that you are editting. I have seen various PHP installers that modify the location of the ini.
its doing the business, now wot is want is to install a fresh copy in GD on my php 4.1.1
- itsmani1
- Forum Regular
- Posts: 791
- Joined: Mon Sep 29, 2003 2:26 am
- Location: Islamabad Pakistan
- Contact:
now status is :
that i have added 'php_gd.dll' to extensions folder and uncommented it in .ini file let see
and i got:::
that i have added 'php_gd.dll' to extensions folder and uncommented it in .ini file let see
and i got:::
on result page[/quote]Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in
Last edited by itsmani1 on Sat Mar 05, 2005 1:21 am, edited 1 time in total.
- smpdawg
- Forum Contributor
- Posts: 292
- Joined: Thu Jan 27, 2005 3:10 pm
- Location: Houston, TX
- Contact:
This note was found on the php web site. Check each step that is listed and let me know what happens.
Installing GD extension on Windows:
First you need to download PHP 4.3.x zip package not the PHP 4.3.x installer! PHP 4.3.x zip package has extensions included already.
Follow the instructions on installing PHP at install.text.
If PHP is already working, you may now activate the GD by doing the following:
1. Uncomment the - extension_dir="". Then you should point it to where the extensions folder is located. Extensions folder is extracted from PHP zip file you downloaded.
Example: extension_dir = C:/PHP/extensions
2. Uncomment the following by removing the semicolon -
Example: extension=php_gd2.dll
3. Test if GD extension is already loaded by executing the following lines:
<?php
var_dump(gd_info());
?>
Hope this helps!