|
From: e-letter <in...@gm...> - 2011-05-10 22:14:45
|
Below is the php file content:
<body>
<?php
include("phpinterfacegnuplot.php");
$this->exe( "set term png\n");
$p->exe("plot sin(x)\n");
$p->export('./test2D.png');
?>
<p> this text should be visible with an image adjacent ...
<img src='./test2D.png' alt='a test php gnuplot image' />
</p>
</body>
The file 'phpinterfacegnuplot.php' is the interface class file copied
to the web server directory. The result is a blank web page, not even
the element <p> is displayed. Error log extract below:
PHP Fatal error: Using $this when not in object context in
/var/www/html/testphpgnuplot.php
Any help please?
|