0

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

我已经安装了具有 document_root D:\wamp\www\ 的 WAMP

我已将 PhpPowerpoint 文件夹复制到以下路径 D:\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”

任何安装它的帮助将不胜感激

4

1 回答 1

0

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

从手册页:

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

于 2015-03-25T14:30:07.960 回答