Fatal error: Call to ... domxml_open_mem()
I am having a very difficult time getting XML functionality to work under PHP. I've been trying to make XQuery_Lite work by proceeding one-step-at-time.
You could say that I'm stuck on the first step - PHP XML installation.
I've downloaded the latest XAMPP release (XAMPP 1.4.10a (lite)) onto my Win2000 server. This config gives me PHP Version 5.0.3RC2-dev with MySQL 4.1.7 on an Apache Server (Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7c PHP/5.0.3RC2-dev).
Everything is running fine when it comes to the usual MySQL web server functionality (for example, osCommerce runs). On the other hand, I downloaded the XQuery_Lite package, and, while running a simple test with this package - I received a fatal error:
Fatal error: Call to undefined function domxml_open_mem() ...
This error was caused by the following statement in class_xquery_lit.php:
This error seems to be caused by something wrong in the PHP configuration. I searched for possible solutions on the web and tried several suggestions that I found:
- I downloaded the latest LIBXML package to get updates for: libxslt.dll, libxml2.dll, and zlib1.dll and copied them into my PHP/.../ext and system32 folder.
- I copied all the PHP/.../ext .dll files to my system32 folder
- I restarted my server.
- I checked libxml2.dll with 'depends' to see that all the dependencies were satisfied (OK).
- I did a phpinfo to see what was PHP said it could do:
libXML support active
libXML Version 2.6.11
libXML streams enabled
iconv support enabled
iconv implementation "libiconv"
iconv library version 1.9
Simplexml support enabled
Revision $Revision: 22.214.171.124 $
Schema support enabled
XML Support active
XML Namespace Support active
libxml2 Version 2.6.11
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
As far as I can tell, everything looks fine.
Unfortunately, the above doesn't fix the PHP XMLDOC problem!
Can anybody tell me what I need to do to make this work?