Make a file named phpinfo.php in your webroot in it put

<?php
        phpinfo();
?>

Then visit it in your browser and see if GD is showing up in the output, if
PHP hasn't picked up the module. 

Also make sure you are editing the right php.ini file, you can find out what
php.ini file PHP is using by looking at the top of the phpinfo() output,
look for something like:

Configuration File (php.ini) Path       C:\WINDOWS\php.ini 

This tells me my php is using c:\windows\php.ini, if you do not have a
php.ini file in the right location you will see something like C:\WINDOWS
with no php.ini file on the end, this tells you what directory PHP is
looking for the php.ini file in, make sure you place one there.

Next look down the page for GD 

You should see something like:

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

If you do not again the GD module is not being loaded and check the php.ini
file indicated by the Configuration File (php.ini) Path directory at the top
of the webpage.

If PHP/Apache can not find the php_gd2.dll file and the configuration file
php.ini has extension php_gd2.dll uncommented most the time you will get a
popup message about the missing .dll file when you start Apache, if you are
not getting this it seems likely PHP is not finding your php.ini file.

Jason 

-----Original Message-----
From: Joe Patiani [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 10, 2004 11:18 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] gd for windows not working

 
 I`ve done all what you`ve been suggested. But I still have an error when
tryng to use the image function  The error just like this:
 
 Fatal error: Call to undefined function: imagecreate() in c:\program
files\apache group\apache\htdocs\gambar.php on line 6
 
 The imagecreate() function came from php_gd2.dll, isn`t it?
 I need this function to run my program.
 Any other solution. Please give me the answer as soon as possible.

--
joe patiani
Geophysic and Meteorology Department
Institut Teknologi Bandung
Labtex XI Jl. Ganesha 10 Bandung 40132 Indonesia

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to