View Single Post
  #1 (permalink)  
Old January 1st, 2005, 10:34 PM
Philibuster Philibuster is offline
Authorized User
Points: 138, Level: 2
Points: 138, Level: 2 Points: 138, Level: 2 Points: 138, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: McHenry, IL, .
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fatal error: Call to ... domxml_open_mem()

Hi,
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:

$doc=domxml_open_mem($data);

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
libXML support active
libXML Version 2.6.11
libXML streams enabled

iconv
iconv support enabled
iconv implementation "libiconv"
iconv library version 1.9

SimpleXML
Simplexml support enabled
Revision $Revision: 1.139.2.4 $
Schema support enabled

xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.11

zlib
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?

TNX

Philibuster
__________________
Philibuster
Reply With Quote