包含文件夹中缺少文件 PHPExcel_Shared_String.php
The file PHPExcel_Shared_String.php is missing in the includes folder
我试过更改功能,但没有用。
我正在使用 PHPExcel,但我一直收到此错误
"The file PHPExcel_Shared_String.php is missing in the includes folder."
它没有显示为致命错误或类似错误。它只是在屏幕上打印出来
我正在使用 PHPExcel 版本 1.8.0。
IOFactory.php
/** PHPExcel root directory */
if (!defined('PHPEXCEL_ROOT')) {
/**
* @ignore
*/
define('PHPEXCEL_ROOT', dirname(__FILE__) . '/');
require(PHPEXCEL_ROOT . 'Autoloader.php');
}
mypage.php
include('../../../assets/phpexcel/Classes/PHPExcel/IOFactory.php');
Autoloader.php
class PHPExcel_Autoloader
{
/**
* Register the Autoloader with SPL
*
*/
public static function Register() {
if (function_exists('__autoload')) {
// Register any existing autoloader function with SPL, so we don't get any clashes
spl_autoload_register('__autoload');
}
// Register ourselves with SPL
return spl_autoload_register(array('PHPExcel_Autoloader', 'Load'));
} //function Register();
这就是我为解决问题所做的工作。
我试过更改功能,但没有用。
我正在使用 PHPExcel,但我一直收到此错误 "The file PHPExcel_Shared_String.php is missing in the includes folder."
它没有显示为致命错误或类似错误。它只是在屏幕上打印出来
我正在使用 PHPExcel 版本 1.8.0。
IOFactory.php
/** PHPExcel root directory */
if (!defined('PHPEXCEL_ROOT')) {
/**
* @ignore
*/
define('PHPEXCEL_ROOT', dirname(__FILE__) . '/');
require(PHPEXCEL_ROOT . 'Autoloader.php');
}
mypage.php
include('../../../assets/phpexcel/Classes/PHPExcel/IOFactory.php');
Autoloader.php
class PHPExcel_Autoloader
{
/**
* Register the Autoloader with SPL
*
*/
public static function Register() {
if (function_exists('__autoload')) {
// Register any existing autoloader function with SPL, so we don't get any clashes
spl_autoload_register('__autoload');
}
// Register ourselves with SPL
return spl_autoload_register(array('PHPExcel_Autoloader', 'Load'));
} //function Register();
这就是我为解决问题所做的工作。