Class 'PHPExcel' not found in../HTML.php on line 153

 ̄綄美尐妖づ 提交于 2019-12-11 04:34:09

问题


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:

Fatal error: Class 'PHPExcel' not found in /home/main/public_html/home/IEW/PHPExcel/Reader/HTML.php on line 153

The PHPExcel Library is located at /home/main/public_html/home/IEW/PHPExcel/

(My host is GoDaddy with cpanel is that makes any sort of difference).

Thanks!


回答1:


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.



来源:https://stackoverflow.com/questions/39540164/class-phpexcel-not-found-in-html-php-on-line-153

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!