Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 1st, 2005, 10:34 PM
Authorized User
Join Date: Dec 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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: $
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?



Similar Threads
Thread Thread Starter Forum Replies Last Post
FATAL ERROR. Help me please??? steviej1 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 11 February 27th, 2007 08:05 AM
Fatal Error?? dparsons ASP.NET 1.0 and 1.1 Professional 0 December 18th, 2006 01:55 PM
Fatal error: Call to undefined function mysql_pcon surendran Beginning PHP 2 May 23rd, 2006 10:41 PM
fatal error!!!! Ashleek007 Beginning PHP 6 October 9th, 2004 10:25 AM
Fatal error: singhzubin BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 2 April 11th, 2004 04:14 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.