0
調用未定義功能mb_internal_encoding()
在/home/project//public_html/application/third_party/mpdf/mpdf.php on line 1519
錯誤使用笨我的服務器有致命錯誤
Error
:
A PHP Error was encountered
Severity: Error
Message: Call to undefined function mb_internal_encoding()
Filename: mpdf/mpdf.php
Line Number: 1519
Backtrace:
But it is correctly working in localhost
我位指示
public function viewpdf($key,$option) {
if($option=='1')
{
$searchdata['fetchproduct']=$this->b2bproduct_model->fetch_productdata1($key);
}
if($option=='2')
{
$searchdata['fetchproduct']=$this->b2bproduct_model->fetch_productdata2($key);
}
if($option=='3')
{
$searchdata['fetchproduct']=$this->b2bproduct_model->fetch_productdata3($key);
}
$html=$this->load->view('moderator/pdf_data', $searchdata,true);
//this the the PDF filename that user will get to download
$pdfFilePath = "shany.pdf";
//load mPDF library
$this->load->library('m_pdf');
//generate the PDF from the given html
$this->m_pdf->pdf->WriteHTML($html);
//download it.
$this->m_pdf->pdf->Output($pdfFilePath, "I");
}
你有嗎? ???你好 – Angel
擴展沒有加載?它如何加載? – Angel