title: file_exists(): open_basedir restriction in effect. File(/tmp/log.htm) is not within the allowed path(s)
body: <p>I am building pdf generating an app using CodeIgniter and DOMPDF. Its working fine in my localhost but when I move these files to the server it gives me the following error. Please, how can I resolve this issue?</p>
  
  <pre><code>Severity: Warning
  
  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
  
  Backtrace:
  
  File: /home/admin/web/fryapps.com/public_html/application/libraries/dompdf/src/Dompdf.php
  Line: 714
  Function: file_exists
  
  File: /home/admin/web/fryapps.com/public_html/application/controllers/Createpdf.php
  Line: 31
  Function: render
  </code></pre>
  
  <p>path of image error: <a href="https://imgur.com/a/zQo1873" rel="nofollow noreferrer">https://imgur.com/a/zQo1873</a></p>
  
  <p>this is my code:</p>
  
  <pre><code>$htmlcontent= $this-&gt;load-&gt;view('admin/test',$data,true);              
  $this-&gt;pdf-&gt;loadHtml($htmlcontent);
  $this-&gt;pdf-&gt;render();
  $this-&gt;pdf-&gt;stream("report.pdf",array("Attachment=&gt;0"));
  </code></pre>
  
  <p>anyone, please help me to resolve this issue?</p>