【问题标题】:Install issue with phpChart Lite in Windows / xampp?在 Windows / xampp 中安装 phpChart Lite 的问题?
【发布时间】:2014-11-21 04:10:26
【问题描述】:

我在 Windows-with-xampp 方面遇到了与 Gerardo Tarragona 在 Ubuntu-with-lampp 方面相同的问题。参考:How to install phpChart lite library?

我已经尝试了几件事,但我遇到的障碍(请参阅代码 sn-p 下面来自浏览器的 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):无法打开流:第 10 行的 C:\xampp\htdocs\phpChart_Lite\conf.php 中没有这样的文件或目录

致命错误:require_once(): Failed opening required 'phpChart.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\phpChart_Lite\conf.php on line 10

【问题讨论】:

    标签: php windows xampp


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-10-03
      • 2013-11-17
      • 2012-08-26
      • 2014-11-23
      • 2012-01-13
      • 2016-10-30
      • 2013-08-15
      相关资源
      最近更新 更多