PHPLot installation issue - Not able to see graph
I have PHP Version 5.2.8 with GD extended. I have installed PHPlot-5.0.6(copied the files into directory called phplot)
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
After installation I am trying to run very simple phplot script, but it is showing the following unexpected results. Please advice what could be wrong in my side!!!
$data = array(array('', 10), array('', 1));
$plot = new PHPlot();
$plot->SetTitle('First Test Plot');
Last edited by Carpetsmoker; 26th March 2009 at 07:23 AM. Reason: Remove binary content, use attachments
Was posting all that binary output really necessary? seriously.. that's horrible.
There isn't a problem, GD is generating a PNG format image.. It's a MIME-type issue.
<? include("phplot/phplot.php"); $data = array(array('', 10), array('', 1)); $plot = new PHPlot(); $plot->SetDataValues($data); $plot->SetTitle('First Test Plot'); header("Content-type: image/png"); $plot->DrawGraph(); ?>
Last edited by BSDfan666; 26th March 2009 at 05:55 AM.
Thanks for your reply...
Really sorry if I gave you a trouble.
I tried your advice, but still it is not working. But when I placed the code in separate file namely Graph.php and refered in image tag, it is working fine.
<IMG SRC="<?= $myConfig->BASEURL ?>Graph.php">
|Thread||Thread Starter||Forum||Replies||Last Post|
|PHPLOT Graph Boundaries||cksraj||Programming||0||24th September 2009 08:58 AM|
|phplot-5.0.5 cannot install||maxrussell||FreeBSD General||1||18th February 2009 01:55 PM|
|Installation Issue : FreeBSD 7.0-RELEASE on Dell D630||zelut||FreeBSD Installation and Upgrading||4||3rd October 2008 12:44 PM|
|OpenSolaris installation issue||BlueJayofEvil||Solaris||4||19th August 2008 08:12 PM|
|MRTG Graph||khizla||FreeBSD General||2||16th June 2008 03:29 AM|