Gossamer Forum
Home : General : Perl Programming :

php_gd.dll

Quote Reply
php_gd.dll
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;

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

I then get the error;

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

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] php_gd.dll In reply to
I though the ; was a comment in the php.ini? Have you tried removing the ; from ;extension=php_gd.dll and restarting Apache? Now keep in mind that it took me a few hours just to get PHP working with Apache on my XP box so I might be way off base here :)

Regards,
Charlie
Quote Reply
Re: [CP] php_gd.dll In reply to
lol you are correct.

Re PHP/XP ...really? hmmmm I didn't have any trouble (Im not patronising you, just weird how I didn't have any trouble).

Last edited by:

RedRum: Nov 6, 2001, 8:12 AM
Quote Reply
Re: [RedRum] php_gd.dll In reply to
Ok, now I did exactly that. I uploaded the newest version from the GD Windows site, and uncommented out the line which refers to the gd_library.dll.

I got this error;

The procedure entry point add_asoc_long could not be located in the dynamic link library php4ts.dll

and then after 'ok' ing that one, I got another one saying;

Unable to load DLL c:\Program Files\NuSphere\Apache\PHP\extensions/php_gd.dll

Anyone got anymore ideas?

Thanks so far for the help BTW Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] php_gd.dll In reply to
Try double checking your paths Tongue

c:\Program Files\NuSphere\Apache\PHP\extensions/php_gd.dll

Quote Reply
Re: [RedRum] php_gd.dll In reply to
Yeah, I noticed that. Not sure where to edit it thoguh Frown

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [RedRum] php_gd.dll In reply to
I was exaggerating a bit, it really didn't take me that long. I tried to install it without reading the directions first so I spent more time than I really needed to. I also have vHosts set up in my httpd.conf and I was guessing what and where I needed to put the correct directives. It's much easier when you RTFM :)

Regards,
Charlie

Quote Reply
Re: [CP] php_gd.dll In reply to
Quote:
I tried to install it without reading the directions first

All male of the species are the same :)....whether it be tv's, dvd's whatever lol
Quote Reply
Re: [RedRum] php_gd.dll In reply to
Yeah, its definatly one of my downers Frown Always to lazy to read a manual....heh heh

Oh, BTW I sorted the php_gd.dll problem. It was just a fact ofd the PHP version not supporting the newest version of php_gd.dll Frown

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!