在 Windows / xampp 中使用 phpChart Lite 安装问题


Install issue with phpChart Lite in Windows / xampp?

我在 Windows-with-xampp 方面遇到了同样的问题,就像 Gerardo Tarragona 在 Ubuntu-with-lampp 方面遇到的问题一样。参考: 如何安装 phpChart lite 库?

我已经尝试了几件事或几件事,我遇到的障碍(请参阅代码片段下方来自浏览器的 PHP 错误消息)似乎是 conf.php 文件正在尝试require_once('phpChart.php'),但我在磁盘上的任何地方都找不到这个文件 phpChart.php它似乎与提取的phpChart_Lite下载无关。有人可以阐明这一点吗? 我错过了什么?

这是 conf.php 文件代码:

<?php
define('SCRIPTPATH','/phpChart_Lite/');
define('DEBUG', true);

/******** DO NOT MODIFY ***********/
require_once('phpChart.php');     
/**********************************/
?>

警告:require_once(phpChart.php):无法打开流:C:''xampp''htdocs''phpChart_Lite''conf.php 第 10 行中没有这样的文件或目录

致命错误: require_once(): 打开失败需要"phpChart.php"(include_path='。C:''xampp''php''PEAR') 在 C:''xampp''htdocs''phpChart_Lite''conf.php 第 10 行

根据您的系统,将 SCRIPTPATH 更改为

define('SCRIPTPATH','/phpChart_Lite');

define('SCRIPTPATH','phpChart_Lite/');