Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 1st, 2005, 10:34 PM
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
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:03 AM.


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