473,387 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

GD thinks it's installed, but won't work

I'm running PHP5 on a WinXP box using Apache2. I am having an unusual
problem and can't find a solution online at all.

I believe I have enabled the GD module properly. I modified the php.ini
and restarted apache (and later restarted my computer) to enable the
php_gd2.dll. When I run phpinfo() and gd_info() I get valid output:

Array
(
[GD Version] =bundled (2.0.28 compatible)
[FreeType Support] =1
[FreeType Linkage] =with freetype
[T1Lib Support] =1
[GIF Read Support] =1
[GIF Create Support] =1
[JPG Support] =1
[PNG Support] =1
[WBMP Support] =1
[XPM Support] =>
[XBM Support] =1
[JIS-mapped Japanese Font Support] =>
)

The problem, though, is that no gd functions work. I keep getting
"Fatal error: Call to undefined function imagecreate()" or any other
image___() functions. I've tried reinstalling php, restarting the
computer and apache, disabling and reenabling the dll, all with no
success. Does anyone have any idea why this GD installation is partial
and how I can get around it?

Thanks in advance,

Bob

Aug 11 '06 #1
3 1536
*** Bob Baddeley escribió/wrote (11 Aug 2006 12:05:37 -0700):
I believe I have enabled the GD module properly. I modified the php.ini
and restarted apache (and later restarted my computer) to enable the
php_gd2.dll. When I run phpinfo() and gd_info() I get valid output:
[...]
The problem, though, is that no gd functions work. I keep getting
"Fatal error: Call to undefined function imagecreate()" or any other
image___() functions.
Weird indeed... Just to discard Apache, do you have the same problem when
running the script from command line?
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Aug 11 '06 #2
>Alvaro G. Vicario wrote:
>Weird indeed... Just to discard Apache, do you have the same problem when
running the script from command line?
Good thought. I just tried it, and got the same result. Call to
undefined function imagecreate.

Aug 11 '06 #3
I have functional code now. I'm not sure what the problem was exactly.
I tried replacing the sample code I had found with slightly different
sample code, and it worked. I pored over the original code many many
times and never saw any mistakes with the imagecreate function, so I
don't know what the deal is. But it works now.

Aug 11 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hal Vaughan | last post by:
I have a script used to find and run Java on a Windows system.  It worked fine on original tests (on a Windows XP system).  It's now running on a Windows 2000 (sp3) system, and it won't work -- the...
1
by: Tom L | last post by:
I have a vb.net app that I created a setup for. I can install it and run it just fine on my XP box, but I'm having problems ont he NT4 workstation box. the nt4 box has sp6a, the .net 1.1 clr,...
1
by: Jim | last post by:
Hey guys I DESPERATLY need some help with this small javascript i have on this website. All that it's supposed to do is change the button image once it's pressed but alas... I copy-pasted the code...
5
by: imaband | last post by:
Hi, I've got a little Quizzer program that asks a question in the upper frame of a frameset and then lists the answer in the lower frame. Answers can be plain text, straight html, a sound, or a...
7
by: simon | last post by:
I have simple html(aspx) page, but vertical height won't work. Even if i had set the height of a table=100%, the table is not 100% height. I spend a lot of time(my real page is more...
3
by: musosdev | last post by:
Hi guys Okay, I've setup my projects to open and compile fine in VS2005 using FPSE and remote web, but it's *really* slow. So I thought I'd have a go at doing it the normal way, by loading from...
6
by: b. hotting | last post by:
Hi, I don't see why this won't work, it are 3 links, the last one (a get) does work, but the first 2 won't. i would like to use a post, through hidden input types any idea? thanks for your...
7
by: Eran.Yasso | last post by:
Hi, I have project that automate excel(using Excel COM) which works fine in my home. I took the project from my home to work and tried to build the project but it won't built. I get error "The...
4
by: datactrl | last post by:
I installed pgagent in a windows 7. On pgadmin3, I can see JOB. And I create a simple Job on it to run a simple batch file, just one line, echo ZZZ. I try to "run now". it won't work at all. I check...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.