为什么 fpdf 库无法在生产服务器上工作?
我使用fpdf库
将pdf从我的php页面导出到本地主机中的“pdf”。在我的本地主机上,页面导出为pdf,但是当我托管到生产服务器并实时工作时... 数据未导出为 pdf 为什么直播时不导出 实际上我也看不到任何错误,,,,,但我的页面变成空白
I am export pdf from my php page to 'pdf' in my localhost by using fpdf library
.On my 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试添加以下内容以查看错误:
检查错误后,我通过在代码顶部添加以下内容来使代码正常工作:
Try adding following to view errors:
after reviewing the errors, i got my code to working by adding this on top of code:
使用
ini_set('display_errors', 1);
您还可以尝试在脚本开头
You can also try to use
ini_set('display_errors', 1);
in the beginning of your script