红联Linux门户
Linux帮助

用php写了一个图 火狐打开来出现下面提示 怎么解决哦

发布时间:2010-04-27 12:18:53来源:红联作者:静静飞舞
The image “http://localhost/php/test.php” cannot be displayed, because it contains errors.

这个是代码:


test page


include ("jpgraph/src/jpgraph.php");
include ("jpgraph/src/jpgraph_line.php");
$graph = new Graph(400,300);
$graph->SetScale("textint");
$graph->img->SetMargin(30,30,80,10);
$graph->title->Set("Y A T");
$data=array(19 , 23 , 34 ,36, 50 , 60 , 65, 70 , 78);
$lineplot=new LinePlot($data);
$lineplot->SetColor("red");
$lineplot->SetLegend("TEMPTURE");
$graph->Add($lineplot);
$graph->Stroke();
?>

文章评论

共有 1 条评论

  1. 静静飞舞 于 2010-05-18 15:35:39发表:

    将php,ini中的out_buffer选项设置成OFF