Captain_Pugwash Posted April 2, 2007 Share Posted April 2, 2007 Hi Guys new to this site adn have a major problem. The gist of it is that I make a call to MySql, retreive teh data I want and make up an xml string from the data. So far so good. then I collect an xsl style sheet so far so good. the idea is then to transform the xml string with the xsl style sheet. all works fine in Php 5, but the hosting server uses php 4. Initially I tried $DOMDoc->loadXML($xmlstr) now this as I say works fine in php 5 but has a serious wobble in php 4 so i tried domxml_open_mem($xmlstr) which I gather is the php4 equiv. All I get is a call to undefined function If It helps I have run php info and curl and DOM/XML are both enabled so even if domxml_open_mem doesn't work it should stil be defined as a method of the original doc or have I missed something, very basic. for fullness I would add php 4 is php4.4.4 running on an appache server 1.3.37 I hav checked the net generally and found this to be a problem, although no-one offers any sepcific solutions adn I did a seqarch on teh site,here but to without success. If you want teh code then let me know an will forward, although without the db it's unliekly to be of any benefit. Thanks in advance this one has me beat CP Quote Link to comment https://forums.phpfreaks.com/topic/45324-solved-domxml_open_mem-undefined-function/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.