nitiphone2021 0 Posted February 17 Share Posted February 17 According to i upload my mpdf to my real host on internet and try to print pdf out but i got fail at code below: I dont't know why this code $mpdf = new \Mpdf\Mpdf(); cann't work it's print out only "01" echo "0"; require_once __DIR__ . '/vendor/autoload.php'; echo "1"; $mpdf = new \Mpdf\Mpdf(); echo "2"; $mpdf->WriteHTML('Hello World'); $mpdf->Output('filename.pdf'); Quote Link to post Share on other sites
maxxd 101 Posted February 17 Share Posted February 17 Add error reporting to the top of your script: error_reporting(-1); ini_set('display_errors', true); Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.