Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php_gd.dll

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Anyone ever managed to get this installed correctly on a Win 2k machine? I'm running Apache 1.13, PHP 4.04 and GD 1.8.4. However, I tried to create an image with the following code;

Code:
<?
Header(&quot;Content-Type: image/jpg&quot;);
$im = ImageCreate(500, 75);
$red = ImageColorAllocate($im, 255, 0, 0);
ImageFill($im, 100, 100, $red);
ImageJPG($im);
?>

I then get the error;

Code:
Fatal error:  Call to undefined function:  imagecreate() in c:\program files\nusphere\apache\nsdocs\testing\gif.php on line 3

However, I did exactly what they said to do on the windows version of GD site.

These are the exact steps I took;

1) Downloaded the newest version of php_gd.dll
2) Uploaded to c:\Program Files\nusphere\apache\php\extensions
3) Opened up PHP.ini in the c:\Program Files\nusphere\apache\php\ folder. I then looked for the line with ;extension=php_gd.dll and it was already there, so I left it there.

Then I run the script again, and still got that error.

Anyone ever managed to get this working, I really need some help ASAP.

Thanks

Andy
 
You need to remove the ; before the line, i.e.

;extension=php_gd.dll

becomes

extension=php_gd.dll

Cheers
Richard
 
Thanks, done that and it now works. However, if I update it to the new php_gd.dll file it is SMALLER than the old one! Is this a compiled problem, cos when i run things after having this installed it does not work :( Is this because the newest version of PHP includes some of the functions that the old version of php_gd.dll did?

Thanks

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top