Voting

: nine plus zero?
(Example: nine)

The Note You're Voting On

hfuecks at pinkgoblin dot com
23 years ago
This function should be used by an XML-RPC client to create an XML payload for an XML-RPC request;

<?php
$params
= "system.methodSignature";
$method = "system.methodHelp";
$request = xmlrpc_encode_request($method,$params);
echo (
$request );
?>

Produces;

<?xml version='1.0' encoding="iso-8859-1" ?>
<methodCall>
<methodName>system.methodHelp</methodName>
<params>
<param>
<value>
<string>system.methodSignature</string>
</value>
</param>
</params>
</methodCall>

The second argument recognises the type of variable and generates the correct XML-RPC structure. See xmlrpc_encode() for more details.

<< Back to user notes page

To Top