Urgent PHP problem with "undefined function: domxml_open_mem()"! Recomplie php?
When I try to use the Ebay XML API that requires DOM packages I get the following error: "Fatal error: Call to undefined function: domxml_open_mem() in /home/domains/tests/ebay.php on line 96".
How can I fix that problem? It is my own server and I've full root access to it. I'm using PHP4, Apache, MySQL on a CentOS system and I've not installed/configured it myself so I don't know how PHP was complied when it was installed. I've heard that it would be nessesary to recomplie PHP but I've no idea of how to do that so please, please help. What do I need to do to be able to use the domxml_open_mem function?
There are plenty of guides but it depends on the features that you would like built into PHP, i'd recommend creating a phpinfo() script to see the configure line of your current compilation. Once you have this you can add any further options you like to it.
A basic guide:
1. Download the source from www.php.net
2. Untar ( tar -zxf php5.bleh.tar.gz )
3. cd php5.bleh
4. ./configure (with your options as mentioned before.
6. make install
This extension makes use of the GNOME XML library. Download and install this library. You will need at least libxml-2.4.14. To use DOM XSLT features you can use the libxslt library and EXSLT enhancements from http://www.exslt.org/. Download and install these libraries if you plan to use (enhanced) XSLT features. You will need at least libxslt-1.0.18.