我正在尝试手动安装PhpPowerpoint (不是使用composer)
我在WAMP上安装了document_root D:\wamp\www\
我已经将PhpPowerpoint文件夹复制到以下路径下:\wamp\www\php\PhpOffice\
使用手动安装代码(代码在文件D:\wamp\www\php\agile\expMSPowerpoint.php中):
require_once '../PhpOffice/PhpPowerpoint/Autoloader.php';
PhpOffice\PhpPowerpoint\Autoloader::register();
$objPHPPowerPoint = new PhpPowerpoint(); <<<< Error in this line我得到了错误:
致命错误:在第435行的D:\wamp\www\php\agile\expMSPowerpoint.php中找不到类‘PhpPowerpoint
任何帮助安装它的人都将不胜感激。
发布于 2015-03-25 22:30:08
我建议使用PHP realpath http://php.net/manual/en/function.realpath.php。
在手册页中:
realpath()展开所有符号链接,解析对输入路径中'/./‘、'/../’和额外'/‘字符的引用,并返回规范化的绝对路径名。
https://stackoverflow.com/questions/29256123
复制相似问题