Hi,
i have written the followin lines of code to generate a gannt chart.
<?
/* include the JpGraph supporting files. */
include("../jpgraph/jpgraph.php");
include("../jpgraph/jpgraph_gantt.php");
/* Creating a graph with automatic size*/
$test_graph = new GanttGraph(0,0,"auto");
/* Adding a new activity on row '0' */
$test_activity = new GanttBar(0,"Project", "2004-05-05", "2004-08-03");
$test_graph -> Add($test_activity);
/* Display the Gantt Chart */
$test_graph -> Stroke();
?>
The above code generates a gantt chart.
But when I am trying to echo any thing like
echo "myname";
Then it does not work.
I have included this line before the rnd PHP tag.
The files used in include() are the predefined files. As these file contains the calss definitions like GanttGraph.
This time I dont know the object oriented phase of PHP.
What should I do?