I am embarrassed, but I cannot seem to create a very simple php chart authored by: http://phpmaster.com/charting-with-pchart to work.
I verified the following: my Apache server is running PHP5, GD and Free Type support are enabled, and my directory paths are good (i.e. is_file was confirmed, all files are uploaded).
Here is the simple code:
<?php
session_start();
require_once('library/class/pData_class.php');
require_once('library/class/pChart_class.php');
$myDataset = array(0, 1, 2, 3, 4, 5, 7, 9);
$myData = new pData();
$myData->addPoints($myDataset);
$myImage = new pImage(500, 300, $myData);
$myImage->setFontProperties(array("FontName" => PCHART_PATH . "library/fonts/GeosansLight.ttf", "FontSize" => 15));
$myImage->setGraphArea(25, 25, 475, 275);
$myImage->drawScale();
$myImage->drawBarChart();
header("Content-Type: image/png");
$myImage->Render(null);
?>
I've tried a few variations, but the above code looks, to me, to be sound. I am out of ideas. I really appreciate any help.
Thanks,
DM