PHPExcel Fatal error: Uncaught Error: Class 'PHPExcel_Shared_String' not found in 错误解决方法

PHPExcel在Linux平台下运行报错:Fatal error: Uncaught Error: Class 'PHPExcel_Shared_String' not found in...

解决方法:

require_once 'PHPExcel/IOFactory.php'; #在引用 Autoloader.php 之前引用 IOFactory.php
require_once 'PHPExcel/Autoloader.php';
...............................
$excel = new PHPExcel();
...................

你可能感兴趣的:(PHPExcel Fatal error: Uncaught Error: Class 'PHPExcel_Shared_String' not found in 错误解决方法)