在第153行的../HTML.php中找不到类"PHPExcel" [英] Class 'PHPExcel' not found in../HTML.php on line 153
问题描述
我很难使PHPExcel正常工作.在声明对象的类HTML.php中,$objPHPExcel = new PHPExcel();
(在第153行),它似乎无法加载PHPExcel.整个错误是:
I'm having a difficult time getting PHPExcel to work. In the class HTML.php, where the object is declared, $objPHPExcel = new PHPExcel();
(on line 153), it can't seem to load PHPExcel. The entire error is:
严重错误:找不到类"PHPExcel" /home/main/public_html/home/IEW/PHPExcel/Reader/HTML.php,第153行
Fatal error: Class 'PHPExcel' not found in /home/main/public_html/home/IEW/PHPExcel/Reader/HTML.php on line 153
PHPExcel库位于/home/main/public_html/home/IEW/PHPExcel/
The PHPExcel Library is located at /home/main/public_html/home/IEW/PHPExcel/
(我的主持人是GoDaddy,而cpanel可以带来任何不同).
(My host is GoDaddy with cpanel is that makes any sort of difference).
谢谢!
推荐答案
要使PHPExcel正常运行,您必须包含PHPExcel.php
,如下所示:
For PHPExcel to work properly you have to include PHPExcel.php
like this:
include_once('PHPExcel/PHPExcel.php');
另外,在某些情况下重新安装整个程序包会有所帮助.
Also, in some cases reinstalling whole package can help.
这篇关于在第153行的../HTML.php中找不到类"PHPExcel"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!