Extra content at the end of the document

Hello,
I want to show a graph + some text for a webpage.
This is my simple code:   

<?php

require_once 'GraphViz.php';

$gv = new Image_GraphViz();

$gv->addNode(

"node_name",

array(

'URL' => '',

'label' => "label_name",

'shape' => 'diamond',

'style' => 'filled',

'color' => 'gold'

)

);

$gv->image();

print "<b>some comments</b>";

?>
But I get the the following error:
This page contains the following errors:
error on line 19 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.
 
What is the cause of this error? And how can I include a Graphviz graph in a normal HTML page?
Thanks in advance,
Anass
 

Recent comments