arkum Posted January 18, 2007 Share Posted January 18, 2007 Had some nice code. Did what it was supposed to, only problem was the server wasn't running 5 so I'm having to go through the code to make it work with 4. I've managed most of it, but the following lines have lost me. Obviously the code is trying to return an XML document comprising of the doc def and the message node.How can I make my code do the same thing but work for php 4?[code]// Generate the message message$out = '<message>' . $msg . '</message>';$doc = DOMDocument::loadXML($out);// Output it.header('Content-Type: text/xml');print $doc->saveXML();[/code]Thanks a lot Link to comment https://forums.phpfreaks.com/topic/34707-rolling-back-some-code/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.