警告:require_once():打开流失败:没有这样的文件或目录

问题描述 投票:0回答:1

我陷入了此消息错误警告中,我已经做了一些解决方案,但没有解决。这里像我遇到的消息错误:

遇到PHP错误

严重性:警告

消息:require_once(C:\ xampp \ htdocs \ pustaka-booking \ application \ third_party / dompdf / dompdf_config.inc.php /):无法打开流:无此文件或目录

文件名:libraries / dompdf_gen.php

行号:25

回溯:

文件:C:\ xampp \ htdocs \ pustaka-booking \ application \ libraries \ dompdf_gen.php行:25函数:_error_handler

文件:C:\ xampp \ htdocs \ pustaka-booking \ application \ libraries \ dompdf_gen.php行:25功能:__construct

文件:C:\ xampp \ htdocs \ pustaka-booking \ application \ controllers \ Home.php行:7功能:__construct

文件:C:\ xampp \ htdocs \ pustaka-booking \ index.php行:315功能:require_once致命错误:require_once():需要打开失败'C:\ xampp \ htdocs \ pustaka-booking \ application \ third_party / dompdf / dompdf_config.inc.php /'(include_path ='C:\ xampp \ php \ PEAR')在C:\ xampp \ htdocs \ pustaka-booking \ application \ libraries \ dompdf_gen.php第25行遇到PHP错误

严重性:编译错误

消息:require_once():必须打开失败'C:\ xampp \ htdocs \ pustaka-booking \ application \ third_party / dompdf / dompdf_config.inc.php /'(include_path ='C:\ xampp \ php \ PEAR')

文件名:libraries / dompdf_gen.php

行号:25

Backtrace :,下面是代码:

/**
* Name:  DOMPDF
* 
* Author: Jd Fiscus
*         [email protected]
*         @iamfiscus
*          
*
* Origin API Class: http://code.google.com/p/dompdf/
* 
* Location: http://github.com/iamfiscus/Codeigniter-DOMPDF/
*          
* Created:  06.22.2010 
* 
* Description:  This is a Codeigniter library which allows you to convert HTML to PDF with the DOMPDF library
* 
*/

class Dompdf_gen {

    public function __construct() {

        require_once APPPATH.'third_party/dompdf/dompdf_config.inc.php';

        $pdf = new DOMPDF();

        $CI =& get_instance();
        $CI->dompdf = $pdf;

    }

}
php html mysql xampp codeigniter-3
1个回答
0
投票

“没有这样的文件或目录”表示该文件不存在。自其窗口开始,将正斜杠“ /”替换为“ \”。不清楚为什么它以错误“ /”结尾,而不是您的代码。

文件是否存在?

© www.soinside.com 2019 - 2024. All rights reserved.