PhpPowerpoint手动安装

时间:2015-03-25 12:47:43

标签: php phppowerpoint

我正在尝试手动安装PhpPowerpoint(不使用作曲家)

我的WAMP安装有document_root D:\ wamp \ www \

我已经在以下路径D:\ wamp \ www \ php \ PhpOffice \

下复制了PhpPowerpoint文件夹

使用手动安装代码(代码位于文件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”类

非常感谢任何安装它的帮助

1 个答案:

答案 0 :(得分:0)

我建议使用PHP realpath http://php.net/manual/en/function.realpath.php

从手册页:

  

realpath()展开所有符号链接并解析对它的引用   '/./','/../'和输入路径中的额外'/'字符并返回   规范化的绝对​​路径名。