<?php //
header('Content-Type: text/plain'); //charset=utf-8"
require_once ('jpgraph/src/jpgraph.php');
require_once ('jpgraph/src/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);
$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();
?>
Warning: require_once(): open_basedir restriction in effect. File(jpgraph/src/jpgraph.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/Y8SYB on line 3
Warning: require_once(jpgraph/src/jpgraph.php): Failed to open stream: Operation not permitted in /in/Y8SYB on line 3
Fatal error: Uncaught Error: Failed opening required 'jpgraph/src/jpgraph.php' (include_path='.:') in /in/Y8SYB:3
Stack trace:
#0 {main}
thrown in /in/Y8SYB on line 3
Process exited with code 255.
Output for 8.0.13
Warning: require_once(jpgraph/src/jpgraph.php): Failed to open stream: No such file or directory in /in/Y8SYB on line 3
Fatal error: Uncaught Error: Failed opening required 'jpgraph/src/jpgraph.php' (include_path='.:') in /in/Y8SYB:3
Stack trace:
#0 {main}
thrown in /in/Y8SYB on line 3
Process exited with code 255.
Warning: require_once(jpgraph/src/jpgraph.php): failed to open stream: No such file or directory in /in/Y8SYB on line 3
Fatal error: require_once(): Failed opening required 'jpgraph/src/jpgraph.php' (include_path='.:') in /in/Y8SYB on line 3
Process exited with code 255.
Warning: require_once(): open_basedir restriction in effect. File(jpgraph/src/jpgraph.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/Y8SYB on line 3
Warning: require_once(jpgraph/src/jpgraph.php): failed to open stream: Operation not permitted in /in/Y8SYB on line 3
Fatal error: require_once(): Failed opening required 'jpgraph/src/jpgraph.php' (include_path='.:') in /in/Y8SYB on line 3
Process exited with code 255.