How to solve “call to undefined function domxml_new_doc()…”

前端 未结 2 388
南旧
南旧 2020-12-10 10:09

I am trying to output xml by using domxml_new_doc.

However, I just got the call to undefined function domxml_new_doc() error. I tried google it but still not luck.

相关标签:
2条回答
  • 2020-12-10 10:58

    What PHP version are you using? You need to ensure that make sure you have the domxml library/extension.

    0 讨论(0)
  • 2020-12-10 11:00

    you can see the requirements here. Quote:

    This extension makes use of the » GNOME XML library. Download and install this library. You will need at least libxml-2.4.14. To use DOM XSLT features you can use the » libxslt library and EXSLT enhancements from » http://www.exslt.org/. Download and install these libraries if you plan to use (enhanced) XSLT features. You will need at least libxslt-1.0.18.

    0 讨论(0)
提交回复
热议问题