php - mpdf cannot generate .pdf file on the server -


my php code :

$htmlout = 'some html code';  include("libraries/mpdf60/mpdf60/mpdf.php");  $mpdf=new mpdf('c','a4','','' , 0 , 0 , 0 , 0 , 0 , 0);   $mpdf->setdisplaymode('fullpage');  $mpdf->list_indent_first_level = 0;  $mpdf->writehtml($htmlout);  $mpdf->output("filename.pdf",'i'); 

i using exact same code on localhost , working perfect. .pdf file downloaded. on trying same code on server, not work. there no error shown. blank white page. new using mpdf, , not know this. help, please?

added answer per op's request:

adding

error_reporting(e_all);  ini_set('display_errors', 1); 

to top of file enables displaying errors, gives useful debugging information.

do remember remove code in production environments though.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -