Jump to content

Problem with GD Library


maro

Recommended Posts

Hi

 

I have serious problems with my GD Library configuration on my win2000 server. In phpinfo() every seems fine and I can use the library if Im running a php-script through a web browser. But, if Im in running the same script trough the command line interface like:

 

c:\xampp\php\php.exe c:\script\myGdScript.php

 

I get the error message:

 

"JpGraph Error This PHP installation is not configured with the GD library. Please recompile PHP with GD support to run JpGraph. (Neither function imagetypes() nor imagecreatefromstring() does exist)"

 

What could be wrong?

 

/Maro

Link to comment
Share on other sites

My "php.exe -m" says:

 

bcmath

calendar

com_dotnet

ctype

date

dom

filter

ftp

hash

iconv

json

libxml

odbc

pcre

Reflection

session

SimpleXML

SPL

standard

tokenizer

wddx

xml

xmlreader

xmlwriter

zlib

 

[Zend Modules]

 

Does this mean that GD isnt installed?

Link to comment
Share on other sites

I found the problem!

 

When running the scripts from cmd.exe, php.exe looked after php.ini in C:\WINDOWS for some reason...

If I used the -c flag together with a definition of the path to my php.ini where it actually are located it works.

 

"c:\xampp\php\php.exe -c c:\xampp\apache\bin -f c:\scripts\dg_script.php"

 

(nice talking to myself ;))

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.