Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

PHP(GD2 installed) getting Call to undefined function

Posted on 2007-11-14
10
Medium Priority
?
1,231 Views
Last Modified: 2013-12-13
Pulling my hair out!  Got all my new Vista Ultimate issues resolved after 4 days and ready to get back to some real programming some stuff on it.  In an image manipulation I get the error message "Call to undefined function imagedestroy() "

The GD2 extension is set in PHP.INI.  The path for the extension is correct.  Permissions on that path have been set for the IIS_IIUsers and Network Services accounts.  I have everything in C:\PHP. in PHP.ini I set the ext path to C:\PHP\ext where the extensions are located.  When I run phpinfo() it shows the extension directory as C:\PHP5 ((??where'd that come from?).  I moved the extensions to a folder, C:\PHP5\ext ... fixed all the permissions, changed the PHP.INI extensions path ... to no avail.
Still get the same error message.  Is it something specific with Vista Ultimate?? Anyone experienced this problem?

Please, any help?
0
Comment
Question by:FrankMcLeod
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 21

Expert Comment

by:nizsmo
ID: 20285037
try:

<?php phpinfo(); ?>

does that show the GD extension being present?
0
 

Author Comment

by:FrankMcLeod
ID: 20285779
i ran it and combed through it and do not see any reference to gd2.  what section would that be under?  also, it shows some whacky things that are not part of my php.ini, such as the extension folder being c:\php5\ext when i have it clearly defined as c:\php\ext in php.ini. I did a complete search on my system to be sure i only have one php.ini file.  there is only one ... it is in c:\php ... php is running fine ... except for this reported gd2 problem. thanx!
0
 
LVL 21

Expert Comment

by:nizsmo
ID: 20286111
oh? it should be listed in the phpinfo page something like this if your GD library is enabled successfully:

gd
GD Support       enabled
GD Version       bundled (2.0.34 compatible)
FreeType Support       enabled
FreeType Linkage       with freetype
FreeType Version       2.1.9
T1Lib Support       enabled
GIF Read Support       enabled
GIF Create Support       enabled
JPG Support       enabled
PNG Support       enabled
WBMP Support       enabled
XBM Support       enabled

so your extension directories do not match? this can be the problem as it probably cannot find your dll extension in the extension directory.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:FrankMcLeod
ID: 20286404
yes, they do match.  my first post explained how i made them match what phpinfo() was showing.  please read it.  for grins i put the dll in windows/system32, in php, in php/ext and in php5/ext to see if it might be "seen" in one of those.  still same results.

the phpinfo() does not show that info you listed.  i combed the registry to see if there is any old php install data hanging around, because i installed and uninstalled several times.  where is the phpinfo() getting its data?  it shows the extension folder and the php path wrong ... and not as i have them in the php.ini file.
0
 
LVL 21

Expert Comment

by:nizsmo
ID: 20286935
as you have several version of php installed previously, maybe it is confusing the paths together.
It may be a wise idea to uninstall all the PHP versions and reinstall if that is an option?

An ultra fast option for this is WAMP:
http://www.wampserver.com/en/

Sets everything up for you in under 5minutes with everything working including phpmyadmin, mysql, php and apache.

Hope this helps.
0
 

Author Comment

by:FrankMcLeod
ID: 20292988
in case anyone is interested for future reference ... my install of PHP 5.2.5 on Vista Ultimate is working great ... PHP, ASP, GD2 support all working after one stumbled-across bit of luck ... even though i had the extensions properly set in php.ini  to c:\php\ext and the windows environment path properly set to c:\php ... it would not work.  just on a whim, i included in the windows path c:\php\ext ... and voila!!
0
 
LVL 21

Accepted Solution

by:
nizsmo earned 1000 total points
ID: 20293006
well done thanks for sharing this information, glad you found a solution!
0
 

Author Comment

by:FrankMcLeod
ID: 20293939
thanks.  although your wamp solution sounded good, this is a client's machine and i want it to run pretty much as i have my own development environment.  
0
 

Author Closing Comment

by:FrankMcLeod
ID: 31409228
actually found the ultimate solution on my own, but comments helped me dig deeper into the issue with my own troubleshooting
0
 
LVL 21

Expert Comment

by:nizsmo
ID: 20294946
no worries, maybe you can save the WAMP solution for future, you won't be disappointed!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses how to implement server side field validation and display customized error messages to the client.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

722 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