Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php pPower Point Struggleing用于设置一次require_的路径_Php_Codeigniter_Phppowerpoint - Fatal编程技术网

Php pPower Point Struggleing用于设置一次require_的路径

Php pPower Point Struggleing用于设置一次require_的路径,php,codeigniter,phppowerpoint,Php,Codeigniter,Phppowerpoint,我正在使用来自()的PHPPowerPoint库。因此,我下载了包含所有所需库的“class”文件夹,并将其放在CodeIgniter框架(源文件/application/libraries/phppowerpoint/classes)中,在我的模型中,我使用了它们的01simple.php测试。因此,我通过以下方式重新定义了他们的库: /** PHPPowerPoint */ require_once __dir__ . '/../libraries/phppowerpoint/classes

我正在使用来自()的PHPPowerPoint库。因此,我下载了包含所有所需库的“class”文件夹,并将其放在CodeIgniter框架(源文件/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”(包括路径=”;C:\xampp\php\PEAR) C:\xampp\htdocs\Project1\application\libraries\PHPPowerpoint\Classes\PHPPowerpoint\Slide.php 在线30

对不起,如果我这样问我的问题;但这是我唯一能得到帮助的方法,所以如果你需要更多的澄清,请让我知道

谢谢


在库中的Slide.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”的索引

我想问题是require_once'PHPPowerPoint.php';为此我 需要去一个文件夹外!并删除“PHPPowerPoint”作为其他要求!对吧?


谢谢

我遇到了同样的问题,通过在PHPPowerPoint.php中将PHPPowerPoint重命名为PHPPowerPoint解决了这个问题,因为Foldername不是PHPPowerPoint;)

如果你给我们看目录结构就好了我不知道最好的显示方式是什么;但是我把称为“类”的PHPPowerPoint库放在CodeIgniter框架(源文件/application/libraries/PHPPowerPoint/classes)中,我调用这个库的模型放在(Source Files/application\models\my_model.php)的第30行slide.php中,我有“require_once‘PHPPowerPoint.php’;”我不知道什么“C:\xampp\php\PEAR”是问题在于您没有显示的your side.php。