| | |
JPGraph+Help
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
Am gettin an error msg like this-->
The image “http://localhost/linegrph.php” cannot be displayed, because it contains errors.
while tryin 2 run my code on localhost..
Wen I comment d statemnt, $graph->Stroke(), nthng at all displys..
Plseeee do tell me a solution..
Thnks in advance
The image “http://localhost/linegrph.php” cannot be displayed, because it contains errors.
while tryin 2 run my code on localhost..
Wen I comment d statemnt, $graph->Stroke(), nthng at all displys..
Plseeee do tell me a solution..
Thnks in advance
What error messages are you getting? Can you post them on here.
If my post is useful please add to my reputation.
Thanks.
Ajtrichards Web Solutions | http://www.ajtrichards.co.uk
Retenovate | http://www.retenovate.com
Thanks.
Ajtrichards Web Solutions | http://www.ajtrichards.co.uk
Retenovate | http://www.retenovate.com
As I postd earlier, this is d error msg am getting..
The image “http://localhost/filename.php” cannot be displayed, because it contains errors.
The image “http://localhost/filename.php” cannot be displayed, because it contains errors.
This is d sample pgm I hav taken frm d tutorials..
<?php
include ("jpgraph.php" );
include ("jpgraph_line.php");
// Some data
$ydata=array(11,3, 8,12,5 ,1,9, 13,5,7 );
// Create the graph. These two calls are always required
$graph=new Graph(350, 250,"auto");
$graph->SetScale("textlin");
// Create the linear plot
$lineplot=new LinePlot($ydata);
$lineplot->SetColor("blue");
// Add the plot to the graph
$graph->Add($lineplot);
// Display the graph
$graph->Stroke();
?>
<?php
include ("jpgraph.php" );
include ("jpgraph_line.php");
// Some data
$ydata=array(11,3, 8,12,5 ,1,9, 13,5,7 );
// Create the graph. These two calls are always required
$graph=new Graph(350, 250,"auto");
$graph->SetScale("textlin");
// Create the linear plot
$lineplot=new LinePlot($ydata);
$lineplot->SetColor("blue");
// Add the plot to the graph
$graph->Add($lineplot);
// Display the graph
$graph->Stroke();
?>
![]() |
Other Threads in the PHP Forum
- Previous Thread: Continue to url after form submit
- Next Thread: Problem with PHP Search Code....
| Thread Tools | Search this Thread |
ajax apache api array back basic beginner binary broken cakephp checkbox class cms code computing cron curl database date delete display dynamic echo email error external file files filter folder form forms function functions gc_maxlifetime google host href htaccess html iframe image include insert integration ip java javascript joomla limit link login loop mail memmory memory menu mlm multiple mysql navigation oop parsing paypal pdf php problem query question radio random recursion regex remote script search server sessions sms snippet soap source space sql syntax system table thesishelp trouble tutorial update upload url validation validator variable video web xml youtube





