nitiphone2021 Posted February 17, 2021 Share Posted February 17, 2021 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 comment https://forums.phpfreaks.com/topic/312169-mpdf-cannt-load-on-real-host-at-mpdf-new-mpdfmpdf/ Share on other sites More sharing options...
maxxd Posted February 17, 2021 Share Posted February 17, 2021 Add error reporting to the top of your script: error_reporting(-1); ini_set('display_errors', true); Quote Link to comment https://forums.phpfreaks.com/topic/312169-mpdf-cannt-load-on-real-host-at-mpdf-new-mpdfmpdf/#findComment-1584572 Share on other sites More sharing options...
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.