错误库 fpdf

Eror libraries fpdf

我有一个错误 fpdf 遇到 PHP 错误 严重性:警告

消息:include_once(/home/u7639860/public_html/application/third_party/Fpdf/Pdf.php):无法打开流:没有那个文件或目录

文件名:libraries/Pdf.php

行号:7

回溯:

文件:/home/u7639860/public_html/application/libraries/Pdf.php 线路:7 函数:_error_handler

文件:/home/u7639860/public_html/application/libraries/Pdf.php 线路:7 函数:include_once

文件:/home/u7639860/public_html/application/controllers/Tb_permohonan.php 线路:15 函数:图书馆

文件:/home/u7639860/public_html/index.php 线路:316 函数:require_once

这是我的图书馆

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Pdf {

    public function __construct() {

        include_once APPPATH.'third_party/Fpdf/Pdf.php';

        $pdf = new FPDF();
        $pdf->AddPage();

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

    }

}

?>

帮帮我..

非常简单,因为你只需要调用其中一个库

$this->load->library('Pdf');

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Pdf {

    public function __construct() {

        // include_once APPPATH.'third_party/Fpdf/Pdf.php'; 

        $pdf = new FPDF();
        $pdf->AddPage();

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

    }

}

?>

函数include_once被删除,它是运行