开发者

Why fpdf library fail to work on production server?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜