Speed up development with full-stack environments for every branch.

Learn More

How to to generate XML for a XMLRPC method request [PHP]

Forked from How to to convert PHP variables into an XMLRPC response..

58 Runs 187 Views 26 Copies
Saved

Saved

gtsolutions 373

gtsolutions
published 4 years ago

<pre>
<?php

/*
 * PHP Xmlrpc - How to to generate XML for a XMLRPC method request
 */

//Generate a request with a method called "methodname" and 3 parameters
$request = xmlrpc_encode_request("methodname", array(1, 2, 3));
//display the XML
echo htmlentities($request);
?>
Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).