Call to undefined function: domxml_open_file()
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Call to undefined function: domxml_open_file()

From: Michael Strorm <mstrorm@yahoo.co.uk>
Date: Thu Jul 21 2005 - 01:31:22 CEST

Hi,

I'm using PHP 4.3.9 with Apache 2.0, and keep getting the error

"[client 127.0.0.1] PHP Fatal error: Call to undefined function:
domxml_open_file() in /var/www/html/php/domtest.php on line 8" (from
the Apache error log).

Here's the page itself:-

<html>
<head><title>TEST</title></head>
<body>
<?php
   $foo = domxml_open_file("test.xml");
   echo "LOOKS LIKE IT WORKED";
?>
</body>
</html>

Calling domxml_new_doc() instead fails similarly.

I've checked the version of libxml2 (libxml2.so.2.6.14, which should
work; the PHP docs mention "libxml", not "libxml2", but references
elsewhere imply that they meant libxml2). I'm running the whole
caboodle under Fedora Core 3 Linux.

(And yes, I know that DOM XML is deprecated; but (a) I'm running PHP4,
not 5, and more importantly (b) The person I'm developing for wants it
to run under PHP4).

Perhaps I've missed something particularly obvious, but this is really
doing my head in, and I'd appreciate some pointers. Thanks!

- MS
Received on Mon Oct 17 21:13:15 2005