Php 服务器上的Dompdf错误

Php 服务器上的Dompdf错误,php,dompdf,Php,Dompdf,警告:第1150行/home/chrisew/public_html/quote/dompdf/include/style.cls.php中的非法字符串偏移量“hex” 不推荐使用:第4672行的/home/chrisew/public\u html/quote/dompdf/lib/class.pdf.php中不推荐使用函数集\u magic\u quotes\u runtime() 不推荐使用:第4677行的/home/chrisew/public\u html/quote/dompdf/l

警告:第1150行/home/chrisew/public_html/quote/dompdf/include/style.cls.php中的非法字符串偏移量“hex”

不推荐使用:第4672行的/home/chrisew/public\u html/quote/dompdf/lib/class.pdf.php中不推荐使用函数集\u magic\u quotes\u runtime()

不推荐使用:第4677行的/home/chrisew/public\u html/quote/dompdf/lib/class.pdf.php中不推荐使用函数集\u magic\u quotes\u runtime()

不推荐使用:第4332行的/home/chrisew/public\u html/quote/dompdf/lib/class.pdf.php中不推荐使用函数集\u magic\u quotes\u runtime()

不推荐使用:第4348行的/home/chrisew/public\u html/quote/dompdf/lib/class.pdf.php中不推荐使用函数集\u magic\u quotes\u runtime() 无法流式传输pdf:标题已发送


我已经成功实现了从数据库创建pdf,它可以在本地主机上正常工作,但当我在服务器上测试时,它给出了上面的错误。

不推荐的警告是由于较新的php版本的函数设置为“不推荐的”。因此,如何消除此警告您需要升级您正在使用的dompdf库,或者检查以下内容:如果您还没有更新到dompdf 0.6.1,请尝试更新到dompdf 0.6.1那里该版本中有一个与相关的补丁。v0.6.1还删除了对
set\u magic\u quotes\u runtime()
的任何引用。