I am generating PDF file using DOMPDF in CodeIgniter, it works fine in localhost. But it gives me the following error after uploading the files to the server.
Message: file_exists(): open_basedir restriction in effect. File(/tmp/log.htm) is not within the allowed path(s): (/home/admin/web/fryapps.com/public_html:/home/admin/tmp)
Filename: src/Dompdf.php
Line Number: 714
This is my code
$htmlcontent= $this->load->view('admin/test',$data,true);
$this->pdf->loadHtml($htmlcontent);
$this->pdf->render();
$this->pdf->stream("report.pdf",array("Attachment=>0"));
I have followed many answers from google but I couldn't fix my problem. please how can i resolve this??