We help IT Professionals succeed at work.

Try to load GD Library for php 5.2

koochy
koochy asked
on
Medium Priority
398 Views
Last Modified: 2013-12-13
I have php 5.2 running on W2k3 server iis 6.0. everything is fine but now I want to load the GD2 stuff. I followed the instructions and change the php.ini fil by un-cmmenting the extension=php_gd2.dll line. Then I registrer the php_gd2.dll. It apparently loaded ok but I got a REGSVR32 popup the says

php_gd2.dll was loaded, but the DllRegisterServer entry point was not found. This file cannot be registered.

What did I miss?

when I did a phpinfo()  the GD section does not show. HELP Please !!!
Comment
Watch Question

CERTIFIED EXPERT

Commented:
Is the php_gd2.dll in the \php5\ext folder?

Author

Commented:
yes ... actually I rebooted the server and now the gd section is showing in the phpinfo() ... is there a way to test that the gd is really working or can I assume that if it now shows in the phpinfo that all is fine ???
CERTIFIED EXPERT
Commented:
Usually if it shows in phpinfo it is OK. Try this

<?php
error_reporting(E_ALL);
$size = getimagesize("http://uk2.php.net/images/php.gif");
print_r( $size );
?>

getimagesize is a GD function. If it works, you're sorted. It should produce this

Array ( [0] => 120 [1] => 67 [2] => 1 [3] => width="120" height="67" [bits] => 7 [channels] => 3 [mime] => image/gif )

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
That's the message I got ... I guess I'm good to go !! Thanks !!
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.