Mam następujący problem.
Chciałem w swoim projekcie wykorzystać bibliotekę GD w celu stoworzenia kilku wykresów i diagramów. Ze strony http://pchart.sourceforge.net/ pobrałem przykłady w których wykorzystana jest klasa pChart i umieściłem je na localhoście w katalogu DIAGRAMY.
Następnie odpaliłem localhosta i wybrałem Example1.php :
localhost/DIAGRAMY/Example1.php
/* Example1 : A simple line chart */ // Standard inclusions include("pChart/pData.class"); include("pChart/pChart.class"); // Dataset definition $DataSet = new pData; $DataSet->AddAllSeries(); $DataSet->SetAbsciseLabelSerie(); $DataSet->SetSerieName("January","Serie1"); $DataSet->SetSerieName("February","Serie2"); $DataSet->SetSerieName("March","Serie3"); $DataSet->SetYAxisName("Average age"); $DataSet->SetYAxisUnit("ľs"); // Initialise the graph $Test = new pChart(700,230); $Test->setFontProperties("Fonts/tahoma.ttf",8); $Test->setGraphArea(70,30,680,200); $Test->drawFilledRoundedRectangle(7,7,693,223,5,240,240,240); $Test->drawRoundedRectangle(5,5,695,225,5,230,230,230); $Test->drawGraphArea(255,255,255,TRUE); $Test->drawScale($DataSet->GetData(),$DataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2); $Test->drawGrid(4,TRUE,230,230,230,50); // Draw the 0 line $Test->setFontProperties("Fonts/tahoma.ttf",6); $Test->drawTreshold(0,143,55,72,TRUE,TRUE); // Draw the line graph $Test->drawLineGraph($DataSet->GetData(),$DataSet->GetDataDescription()); $Test->drawPlotGraph($DataSet->GetData(),$DataSet->GetDataDescription(),3,2,255,255,255); // Finish the graph $Test->setFontProperties("Fonts/tahoma.ttf",8); $Test->drawLegend(75,35,$DataSet->GetDataDescription(),255,255,255); $Test->setFontProperties("Fonts/tahoma.ttf",10); $Test->drawTitle(60,22,"example 1",50,50,50,585); $Test->Render("example1.png");
efekt jest taki że wyświetla mi się pusta strona, bez żadnego błędu, bez niczego ... podobnie jak próbowałem odpalić inne przykłady
postanowiłem sprawdzić poleceniem phpinfo czy GD jest włączone i owszem jest wszędzie : Enabled
następnie wyszukałem php.ini i znalazłem linijkę extension=php_gd2.dll , która była odkomentowana
sprawdziłem jeszcze polenie:
var_dump(gd_info());
i wywaliło mi następujące dane:
array(12) { ["GD Version"]=> string(27) "bundled (2.0.34 compatible)" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["T1Lib Support"]=> bool(true) ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(false) ["XBM Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) }
więc wszystko powinno śmigać
co może być nie tak ?
dodam tylko że używam Windows 7, Laptop ma 2 lata, Lenovo, najnowszy DirectX,

W moim Xampp jest:
Apache 2.2.9
MySQL 5.0.51b
PHP 5.2.6 + PHP 4.4.9 + PEAR
dzięki,
Damian