You are here

function xmlrpc_server_output in Drupal 4

Same name and namespace in other branches
  1. 5 includes/xmlrpcs.inc \xmlrpc_server_output()
  2. 6 includes/xmlrpcs.inc \xmlrpc_server_output()
  3. 7 includes/xmlrpcs.inc \xmlrpc_server_output()
2 calls to xmlrpc_server_output()
xmlrpc_server in includes/xmlrpcs.inc
The main entry point for XML-RPC requests.
xmlrpc_server_error in includes/xmlrpcs.inc
Throw an XML-RPC error.

File

includes/xmlrpcs.inc, line 106

Code

function xmlrpc_server_output($xml) {
  $xml = '<?xml version="1.0"?>' . "\n" . $xml;
  header('Connection: close');
  header('Content-Length: ' . strlen($xml));
  header('Content-Type: text/xml');
  header('Date: ' . date('r'));
  echo $xml;
  exit;
}