PHPPower Point-strugling,用于为require_once设置路径


PHPPower Point-struggelling for setting the path for require_once

我正在使用(http://phppowerpoint.codeplex.com/releases/view/26621(中的PHPPowerPoint库。所以我下载了"class"文件夹,它整合了所有需要的库,并将其放在CodeIgniter框架(Source Files/application/libraries/phppowerpoint/classes(中,在我的模型中,我正在使用他们的01simple.php测试。所以我通过以下方式重新引用他们的图书馆:

/** PHPPowerPoint */
require_once __dir__ . '/../libraries/phppowerpoint/classes/PHPPowerpoint.php';

/** PHPPowerPoint_IOFactory */
require_once __dir__ . '/../libraries/phppowerpoint/classes/PHPPwerpoint/PHPPowerpoint.php';

但它一直给我以下错误:

致命错误:require_once((:需要打开失败 'PHPPowerPoint.php' (include_path='.;C:''xampp''php''PEAR'( in C:''xampp''htdocs''Project1''application''libraries''PHPPowerpoint''Classes''PHPPowerpoint''Slide.php 在第 30 行

对不起,如果我以这种方式问我的问题;但这是我可以获得帮助的唯一方法,所以如果您需要更多澄清,请告诉我!

谢谢


在幻灯片中.php它来自库中,我有以下要求:

/** PHPPowerPoint */
require_once 'PHPPowerPoint.php';
/** PHPPowerPoint_Slide_Layout */
require_once 'PHPPowerPoint/Slide/Layout.php';
/** PHPPowerPoint_Shape */
require_once 'PHPPowerPoint/Shape.php';
/** PHPPowerPoint_Shape_RichText */
require_once 'PHPPowerPoint/Shape/RichText.php';
/** PHPPowerPoint_Shape_BaseDrawing */
require_once 'PHPPowerPoint/Shape/BaseDrawing.php';
/** PHPPowerPoint_Shape_Drawing */
require_once 'PHPPowerPoint/Shape/Drawing.php';
/** PHPPowerPoint_Shape_MemoryDrawing */
require_once 'PHPPowerPoint/Shape/MemoryDrawing.php';
/** PHPPowerPoint_IComparable */
require_once 'PHPPowerPoint/IComparable.php';
/** PHPPowerPoint_Shared_Font */
require_once 'PHPPowerPoint/Shared/Font.php';
/** PHPPowerPoint_Shared_String */
require_once 'PHPPowerPoint/Shared/String.php';

而"PHPPowerPoint"是"slide.php"文件夹的外部,slide.php是"PHPPowerPoint"的indes。

我想问题require_once"PHPPowerPoint.php"; 需要去外面一个文件夹!并删除"PHPPowerPoint"以满足其他要求!右?

谢谢

我遇到了同样的问题,并通过在PHPPowerpoint中将PHPPowerPoint重命名为PHPPowerpoint来解决它.php因为文件夹名称不是PHPPowerPoint ;)