claudia: Problem mit jpgraph!!!!

Beitrag lesen

Hallo,
Hoffe hier jemanden zu finden, der jpgarph schon mal eingerichtet hat. Ich probiers schon seit einiger Zeit, krieg aber keine Graphiken angezeigt.

php Version 4.3.4

Mit phpinfo() habe ich bezüglich der GD folgende Ausgabe erhalten:

GD Support -> enabled
GD Version -> bundled (2.0.15 compatible)
Free Type Support -> enabled
GIF Read Support -> enabled
JPG Support -> enabled
PNG Support -> enabled
WBMP Support -> enabled
XBM Support -> enabled

jpgraph Version 1.16
Hier die Variablen der jpg-config.inc

DEFINE("CACHE_DIR","/tmp/jpgraph_cache/");
DEFINE("TTF_DIR","/usr/lib/X11/fonts/TTF/");
DEFINE("CSIMCACHE_DIR","csimcache/");
DEFINE("CSIMCACHE_HTTP_DIR","csimcache/");
DEFINE('CHINESE_TTF_FONT','bkai00mp.ttf');
DEFINE("LANGUAGE_CYRILLIC",false);
DEFINE("CYRILLIC_FROM_WINDOWS",false);
DEFINE("DEFAULT_GFORMAT","png");
DEFINE('USE_TRUECOLOR',true);
DEFINE("USE_LIBRARY_GD2",'true');
DEFINE("USE_CACHE",true);
DEFINE("READ_CACHE",true);
DEFINE("USE_IMAGE_ERROR_HANDLER",true);
DEFINE("INSTALL_PHP_ERR_HANDLER",true);
DEFINE("USE_APPROX_COLORS",true);
DEFINE("ERR_DEPRECATED",true);
DEFINE("BRAND_TIMING",false);
DEFINE("BRAND_TIME_FORMAT","(%01.3fs)");
DEFINE("CACHE_FILE_GROUP","wwwadmin");
DEFINE("CACHE_FILE_MOD",0664);
DEFINE("USE_BRESENHAM",false);
DEFINE("_CSIM_SPECIALFILE","_csim_special_");
DEFINE("_CSIM_DISPLAY","_jpg_csimd");
DEFINE("_IMG_HANDLER","__handle");

CACHE_DIR und TTF_DIR habe ich angepasst.

Und hier die ersten Zeilen von jpgraph.php

require_once('jpg-config.inc');

// Version info
DEFINE('JPG_VERSION','1.16');

// For internal use only
DEFINE("_JPG_DEBUG",false);
DEFINE("_FORCE_IMGTOFILE",false);
DEFINE("_FORCE_IMGDIR",'/tmp/jpgimg/');

//------------------------------------------------------------------------
// Automatic settings of path for cache and font directory
// if they have not been previously specified
//------------------------------------------------------------------------
if(USE_CACHE) {
    if (!defined('CACHE_DIR')) {
 if ( strstr( PHP_OS, 'WIN') ) {
     if( empty($_SERVER['TEMP']) ) {
  die('JpGraph Error: No path specified for CACHE_DIR. Please specify a path for that DEFINE in jpgraph.php');
     }
     else {
  DEFINE('CACHE_DIR', $_SERVER['TEMP'] . '/');
     }
 } else {
     DEFINE('CACHE_DIR','/tmp/jpgraph_cache/');
 }
    }
}
else {
    DEFINE('CACHE_DIR', '');
}

if (!defined('TTF_DIR')) {
    if (strstr( PHP_OS, 'WIN') ) {
        if( empty($_SERVER['SystemRoot']) ) {
     die('JpGraph Error: No path specified for TTF_DIR. Please specify a path for that DEFINE in jpgraph.php');
        }
 else {
   DEFINE('TTF_DIR', $_SERVER['SystemRoot'] . '/fonts/');
        }
    } else {
 DEFINE('TTF_DIR','/usr/lib/X11/fonts/TTF/');
    }
}

WAS MACHE ICH FALSCH DAS NICHTS ANGEZEIGT WIRD, AUSSER EIN WEISSES KÄSTCHEN (GRAFIK NICHT VORHANDEN). ES GIBT ABER AUCH KEINE FEHLERMELDUNG!!!

Vielen,vielen Dankk für Hilfe im vorhinein

lg
Claudia