maro Posted October 24, 2007 Share Posted October 24, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/74570-problem-with-gd-library/ Share on other sites More sharing options...
maro Posted October 24, 2007 Author Share Posted October 24, 2007 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? Quote Link to comment https://forums.phpfreaks.com/topic/74570-problem-with-gd-library/#findComment-376923 Share on other sites More sharing options...
maro Posted October 24, 2007 Author Share Posted October 24, 2007 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 ) Quote Link to comment https://forums.phpfreaks.com/topic/74570-problem-with-gd-library/#findComment-376938 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.