Advertisement
Guest User

Untitled

a guest
Mar 7th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. PHP Fatal error: Uncaught MpdfMpdfException: Temporary files directory "E:Inetpubvhostsgsm.org.myhttpdocsprint/custom/temp/dir/path" is not writable in E:Inetpubvhostsgsm.org.myhttpdocsprintvendormpdfmpdfsrcCache.php:17
  2. Stack trace:
  3. #1 E:Inetpubvhostsgsm.org.myhttpdocsprintvendormpdfmpdfsrcMpdf.php(1054): MpdfServiceFactory->getServices(Object(MpdfMpdf), Object(PsrLogNullLogger), Array, 0, Object(MpdfLanguageLanguageToFont), Object(MpdfLanguageScriptToLanguage), NULL, NULL, NULL, NULL)
  4.  
  5. #2 E:Inetpubvhostsgsm.org.myhttpdocsprintprint-form.php(88): MpdfMpdf->__construct(Array)
  6.  
  7. #3 {main} thrown in E:Inetpubvhostsgsm.org.myhttpdocsprintvendormpdfmpdfsrcCache.php on line 17
  8.  
  9. require_once 'E:Inetpubvhostsgsm.org.myhttpdocsprintvendorautoload.php';
  10.  
  11. use MpdfMpdf;
  12.  
  13. $servername = "localhost";
  14. $username = "root";
  15. $password = "";
  16. $dbname = "gsm_db";
  17.  
  18. $conn = mysqli_connect($servername, $username, $password, $dbname);
  19. if (!$conn) {
  20. die("Connection failed: " . mysqli_connect_error());}
  21.  
  22. $data = '
  23. <html><head><title>Document</title></head>
  24. <body>
  25. <table><caption>Membership Application Form</caption>';
  26.  
  27. $sql = mysqli_query($conn,"SELECT * FROM borang_permohonan where id_borang_permohonan=528");
  28. while ($row = mysqli_fetch_array($sql)) {
  29.  
  30. $data .='
  31. <tr>
  32. <td><img style="max-width:300px; max-height:5px" src="'.$row['gambarpaspot'].'"></td>
  33. </tr>
  34. <tr>
  35. <td>Title</td><td>: '.$row['title'].'</td>
  36. </tr>
  37. <tr>
  38. <td>Full name</td><td>: '.$row['fullname'].'</td>
  39. </tr>
  40. <tr>
  41. <td>Date of birth</td><td>: '.$row['date_birth'].'</td>
  42. </tr>
  43. <tr>
  44. <td>Place of birth</td><td>: '.$row['place_birth'].'</td>
  45. </tr>
  46. ';
  47. }
  48.  
  49. $data .= '</table></body></html>';
  50. $mpdf = new mPDF();
  51. $mpdf->WriteHTML($data);
  52. $mpdf->Output();
  53. exit;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement