PhpPowerpoint手动安装

PhpPowerpoint手动安装,php,phppowerpoint,Php,Phppowerpoint,我正在尝试手动安装PhpPowerpoint(不使用composer) 我已经安装了WAMP,有文档\u根D:\WAMP\www\ 我已在以下路径D下复制了PhpPowerpoint文件夹:\wamp\www\php\PhpOffice\ 使用手动安装代码(代码位于文件D:\wamp\www\php\agile\expMSPowerpoint.php中): require_once'../PhpOffice/PhpPowerpoint/Autoloader.php'; PhpOffice\Php

我正在尝试手动安装PhpPowerpoint(不使用composer)

我已经安装了WAMP,有文档\u根D:\WAMP\www\

我已在以下路径D下复制了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() 我建议使用PHP
realpath

从手册页面:

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


此外,您可能还需要检查PhpPowerpoint的代码和目录是否可执行,并可供web服务器用户使用。否则,用它的完整路径进行实验,看看它是否有效——就像测试一样。
require_once '../PhpOffice/PhpPowerpoint/Autoloader.php';
PhpOffice\PhpPowerpoint\Autoloader::register();
$objPHPPowerPoint = new PhpPowerpoint(); <<<< Error in this line