Try to load GD Library for php 5.2

Posted on 2009-02-11
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 !!!
Question by:koochy
    LVL 34

    Expert Comment

    by:Beverley Portlock
    Is the php_gd2.dll in the \php5\ext folder?

    Author Comment

    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 ???
    LVL 34

    Accepted Solution

    Usually if it shows in phpinfo it is OK. Try this

    $size = getimagesize("");
    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 )

    Author Closing Comment

    That's the message I got ... I guess I'm good to go !! Thanks !!

    Featured Post

    Easy Project Management (No User Manual Required)

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    The viewer will learn how to dynamically set the form action using jQuery.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now