RE: [PHP] Help with JPGraph in PHP.

From: Date: Thu, 31 Jan 2002 14:56:43 +0000
Subject: RE: [PHP] Help with JPGraph in PHP.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-82937@lists.php.net to get a copy of this message
Also I am using GD2.0. Does any one know where I can get GD older version ( like GD1.6)? -----Original Message----- From: Sridhar Moparthy [mailto:sridhar.moparthy@wcom.com] Sent: Thursday, January 31, 2002 9:23 AM To: php-general@lists.php.net Subject: [PHP] Help with JPGraph in PHP. Hi All, Is any one is using JpGraphs to display graphs with PHP. If so could you please help me?. Here is what I have done. 1. Enabled extension php_gd.dll 2. Included jpgraph.php and jpgraph_line.php files. 3. Try to run the following code $ydata = array ( 11,3,8,12,5,1,9,13,5,7); $graph= new Graph(300,200); $graph->setscale("textlin"); $lineplot = new LinePlot($ydata); $graph->Add($lineplot); $graph->Stroke(); I am not getting the graph abut I am getting some junk characters like "‰PNG  IHDR,È/" Am I missing anything here?. Do I need to set anything in php.ini file ?. Do I need to set anything in jpgraph.php? I am using PHP 4.06 On IIS, WinNT. Thank you in advance! Sridhar Moparthy

« previous php.general (#82937) next »