I can't render the simplest of graphs in Teechart for PHP
Posted: Tue Nov 15, 2011 10:53 pm
Trying to get started with Teechart for PHP, downloaded today, I immediately run into problems.
None of the exmples works and the short PHP-code below crashes. Commenting out the rendering line lets the program survive, but no graph.
That I have the proper file-permissions is demonstrated by the line that is commented works when uncommented.
What do I do wrong?
Thanks in advance for any tip.
Håkan
<?php
require_once "../teechart/sources/libTeeChart.php";
$tchart = new TChart(500,300);
#shell_exec ( "touch tchart.png" );
$tchart->render("tchart.png");
?>
Now, some html lines are required to display the image at the same page :
<body>
<img alt="bug" src="tchart.png" style="border: 0px solid gray;"/>
</body>
None of the exmples works and the short PHP-code below crashes. Commenting out the rendering line lets the program survive, but no graph.
That I have the proper file-permissions is demonstrated by the line that is commented works when uncommented.
What do I do wrong?
Thanks in advance for any tip.
Håkan
<?php
require_once "../teechart/sources/libTeeChart.php";
$tchart = new TChart(500,300);
#shell_exec ( "touch tchart.png" );
$tchart->render("tchart.png");
?>
Now, some html lines are required to display the image at the same page :
<body>
<img alt="bug" src="tchart.png" style="border: 0px solid gray;"/>
</body>