Jump to content

Rolling back some code


arkum

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.