BloodyMind Posted July 5, 2008 Share Posted July 5, 2008 When I instantiate it like this: $dom = new DOMDocument(); I get this warning: domdocument::domdocument() expects at least 1 parameter, 0 given if I instantiate it like this $dom = new DOMDocument('1.0', 'utf-8'); I get this warning: Warning: domdocument::domdocument() expects parameter 2 to be long Then after both warnings I get this fatal error too: Fatal error: Call to undefined method domdocument::load() What shall I do? Is that the domxml extention is hallucinating ? Link to comment https://forums.phpfreaks.com/topic/113375-dom-xml-problem/ Share on other sites More sharing options...
DarkWater Posted July 5, 2008 Share Posted July 5, 2008 Why don't you look up the constructor signature on google or the PHP manual? And I'd personally recommend SimpleXML. Link to comment https://forums.phpfreaks.com/topic/113375-dom-xml-problem/#findComment-582488 Share on other sites More sharing options...
BloodyMind Posted July 5, 2008 Author Share Posted July 5, 2008 well actually i found out that these arguments are optional anyways but i dunno what the hell is going on!! Link to comment https://forums.phpfreaks.com/topic/113375-dom-xml-problem/#findComment-582490 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.