claudia: Problem mit jpgraph!!!!

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

  1. Hi,

    ich hab damit mal gearbeitet. Ist aber schon ne Weile her. Ich schau mal, ob ich das noch finde. Einen Moment bitte.

    al

    1. Ok ich hab da was gefunden.

      <?
       include('phpHtmlChart.php');

      $hostname = "localhost"; /* This is the hostname on which your MySQL is running */
      $dbName = "";
      $username = "";
      $password = "";

      /* Make connection to database */
      mysql_connect($hostname, $username, $password) OR DIE("Unable to connect to database");

      /* Select the database to be processed */
      @mysql_select_db("$dbName") or die( "Unable to select database");
      $r_select_moon = mysql_query("SELECT * FROM klassen");
      ?>

      <?
      $aGraphData = Array();
       while($test = mysql_fetch_array($r_select_moon)) {
        array_push($aGraphData, array($test['klasse'], $test['stueck']));
       }
       echo phpHtmlChart($aGraphData, 'H', 'Klassenanalyse Strecke: Rehwild', 'Stückzahl', '8pt', 400, 'px', 15, 'px');
      ?>

      das ist jedenfalls mein Code. Naja du wirst ja irgendein Beispiel haben. Vielleicht brauchst du auch ne neue PHP Version, aber da ist es voreingestellt, weil dir eventuell irgendeine Klasse fehlt. Ich würde php5 runterladen und installieren. Dann müsste es gehen. Ich hab da auch gut rumgewerkelt an dem Tag.

      Bis dann
      al

      1. Hallo Al,
        Danke mal für Deine Antwort. Werd ich halt weiter rumprobieren.
        Schönes WE

        Claudia

        1. Hi,

          Zur Not kann ich dir auch mal die anderen Dateien schicken. Einfach ne mail an alkativo@gmx.de