View Single Post
  #2   (View Single Post)  
Old 26th March 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Was posting all that binary output really necessary? seriously.. that's horrible.

There isn't a problem, GD is generating a PNG format image.. It's a MIME-type issue.

Code:
<?
include("phplot/phplot.php");
$data = array(array('', 10), array('', 1));
$plot = new PHPlot();
$plot->SetDataValues($data);
$plot->SetTitle('First Test Plot');
header("Content-type: image/png");
$plot->DrawGraph();
?>
EDIT: This may be wrong, I just realized you're using some sort of assisting library.. it's probably a configuration issue of some sort, apologies.

Last edited by BSDfan666; 26th March 2009 at 06:55 AM.
Reply With Quote