Fatal Error Call To Undefined Function Domxml_open_mem
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up domxml_open_mem - Getting error while calling domxml_open_mem() function up vote 0 down vote favorite When i am calling domxml_open_mem() function in my project, i am getting "Fatal error: Call to undefined function domxml_open_mem()" error. Then i have tested that domxml_open_mem() function is exists not or not, then i understood that this function is not exists in server, I am using PHP 5.2.9 version, and the server is Linux. In phpInfo() the following is the status for dom DOM/XML enabled DOM/XML API Version 20031129 libxml Version 2.7.8 HTML Support enabled XPath Support enabled XPointer Support enabled Schema Support enabled RelaxNG Support enabled Need i install any .so file like domxml.so, How can i install this file or How can i enable this in server? Please anyone help me!!! php xml dom share|improve this question asked Feb 15 '12 at 8:36 Saritha 49941020 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote domxml_open_mem() is a PHP4-legacy function. You shouldn't be using it. It is part of the PHP4 DOMXML extension, which wasn't included when PHP was upgraded to v5. PHP5 introduced a number of alternative XML processing libraries that you can use instead. See here for a list of them: http://www.php.net/manual/en/refs.xml.php If you absolutely can't live without the old domxml_open_mem() function, then there is a wrapper library that someone has written that basically takes all the old functions and classes that were deprecated, and re-implements them using the PHP5 equivalents. See here: http://alexandre.alapetite.fr/doc-alex/domxml-php4-php5/ If you have old PHP4 code that you want to get up-and-running
Forums Programming Discussion Urgent PHP problem with "undefined function: domxml_open_mem()"! Recomplie php? If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 12 of 12 Thread: Urgent PHP problem with "undefined function: domxml_open_mem()"! Recomplie php? Tweet Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 12-27-2006,02:28 http://stackoverflow.com/questions/9290111/domxml-open-mem-getting-error-while-calling-domxml-open-mem-function PM #1 Oskare100 View Profile View Forum Posts View Forum Threads WHT Addict Join Date Mar 2004 Posts 159 Urgent PHP problem with "undefined function: domxml_open_mem()"! Recomplie php? Hello, 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 http://www.webhostingtalk.com/showthread.php?t=572596 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? Thanks in advance, /Oskar R Reply With Quote 0 12-27-2006,02:34 PM #2 voxio View Profile View Forum Posts View Forum Threads Web Hosting Evangelist Join Date Jun 2004 Posts 523 The DOM extension hasn't be installed correctly. You can go to the manual and read about installing it correctly, http://us2.php.net/manual/en/ref.domxml.php The important extension I believe you need is --with-dom Make sure you also have all the libraries required installed. System Administrator Reply With Quote 0 12-27-2006,03:30 PM #3 Oskare100 View Profile View Forum Posts View Forum Threads WHT Addict Join Date Mar 2004 Posts 159 Hello, OK, Do you know of any good guide about how to recomplie PHP? Becuse I've no idea how to do it.. /Oskar Reply With Quote 0 12-27-2006,04:06 PM #4 voxio View Profile View Forum Posts View Forum Threads Web Hosting Evangelist