我在我的 PHP 应用程序中使用 libCharts ....图表正在工作,但是当我使用 INCLUDE 函数将它包含在应用程序中时,它不起作用它给我错误警告:include(charts/charts-example-line.php ) [function.include]: 无法打开流: 第 349 行的 C:\xampp\htdocs\MyProject\index.php 中没有这样的文件或目录
警告:include() [function.include]:在 C:\xampp\htdocs 中打开 'charts/charts-example-line.php' 以包含 (include_path='.;C:\xampp\php\pear\') 失败\MyProject\index.php 第 349 行
我的图形代码是
$chart = new PieChart(500, 250);
$dataSet = new XYDataSet();
$dataSet->addPoint(new Point("Mozilla Firefox (80)", 1000));
$dataSet->addPoint(new Point("Konqueror (75)", 75));
$dataSet->addPoint(new Point("Other (50)", 50));
$chart->setDataSet($dataSet);
$chart->setTitle("User agents for www.example.com");
$chart->render("libchart/demo/generated/demo1.png");
?>
<html>
<body>
<img src="libchart/demo/generated/demo789.png" border=0 />
</body>
</html>
请帮我