gracias por la respuesta, estoy usando una librería (jpgraph), hice lo que entendí:
en la ultima linea, hice lo siguiente:
echo "<img src='".$graph->Stroke() ."'/>"; pero sigo con el mismo error
Código PHP:
$datay1 = array(null,$rs[0][total],$rs[1][total],$rs[2][total],$rs[3][total]);
$anio=$_POST[anioMetas];
// Setup the graph
$graph = new Graph(500,250);
$graph->SetMarginColor('white');
$graph->SetScale("textlin");
$graph->SetFrame(false);
$graph->SetMargin(30,40,25,30);
// Setup the tab
$graph->tabtitle->Set('año '.$anio );
$graph->tabtitle->SetFont(FF_ARIAL,FS_BOLD,13);
$graph->tabtitle->SetColor('darkred','#E1E1FF');
// Enable X-grid as well
$graph->xgrid->Show();
$graph->SetScale('int',0,500,0,5);
// Create the plot
$p1 = new LinePlot($datay1);
$p1->SetColor("navy");
// Use an image of favourite car as marker
$p1->mark->SetType(MARK_IMG,'saab_95.jpg',0.2);
// Displayes value on top of marker image
$p1->value->SetFormat('%d Doc.');
$p1->value->Show();
$p1->value->SetColor('darkred');
$p1->value->SetFont(FF_ARIAL,FS_BOLD,10);
// Increase the margin so that the value is printed avove tje
// img marker
$p1->value->SetMargin(20);
$p1->SetCenter();
$graph->Add($p1);
// $graph->Stroke() --> linea que reemplacé con la siguiente:
echo "<img src='".$graph->Stroke() ."'/>";