Forum Moderators: coopster

Message Too Old, No Replies

Call to undefined function: xmldoc()

do I have curl installed?

         

voltrader

11:35 pm on Jul 26, 2005 (gmt 0)

10+ Year Member



The error "Call to undefined function: xmldoc()" indicates that curl is not installed, but when I typed in curl -V at the command line I received this:

curl 7.10.6 (i386-redhat-linux-gny) libcurl/7.10.6 OpenSSL/0.9.7a ipv6 zlib/1.1.4

Does this mean that it's installed but just diabled?

How would I enable it in php.ini?

coopster

11:41 am on Jul 27, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



xmldoc() [php.net] is a deprecated function. And actually, you may want to consider the DOM extension [php.net] which is the replacement for the DOM XML extension from PHP 4.

voltrader

4:03 pm on Jul 27, 2005 (gmt 0)

10+ Year Member



Gotcha.

I rechecked that CURL and Open SSL were enabled in phpinfo.

I changed references of xmldoc() to domxml_open_mem() but I'm still getting the call to undefined function error message.

Anything else I missed that I should be checking?

coopster

1:59 am on Aug 3, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



That function requires the GNOME XML library as described in the links. That is a PHP 4 extension. You may want to review the notes again before traveling down this road.


The DOM XML extension has been overhauled in PHP 4.3.0 to better comply with the DOM standard. The extension still contains many old functions, but they should no longer be used. In particular, functions that are not object-oriented should be avoided.
...
...
...
Note: This extension is no longer marked experimental. It will, however, never be released with PHP 5, and will only be distributed with PHP 4. If you need DOM XML support with PHP 5 you can use the DOM extension. This domxml extension is not compatible with the DOM extension.