开发者

Why fpdf library fail to work on production server?

开发者 https://www.devze.com 2023-01-05 13:48 出处:网络
I amexport pdf from my php pageto\'pdf\' in my localhost by using fpdf library.On my 开发者_C百科localhost the page is exported to pdf but when i host to the production server and work live ...

I am export pdf from my php page to 'pdf' in my localhost by using fpdf library.On my 开发者_C百科localhost the page is exported to pdf but when i host to the production server and work live ... The datas are not being exported to pdf Why it is not exported on live Actually i cant see any error also,,,,, but my page goes blank


You can also try to use

ini_set('display_errors', 1);

in the beginning of your script


Try adding following to view errors:

ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(-1);

after reviewing the errors, i got my code to working by adding this on top of code:

include_once('fpdf182/fpdf.php');
ob_start();
0

精彩评论

暂无评论...
验证码 换一张
取 消