note 91674 modified in function.xmlrpc-decode-request by danbrown

From: Date: Mon, 22 Jun 2009 15:23:38 +0000
Subject: note 91674 modified in function.xmlrpc-decode-request by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157242@lists.php.net to get a copy of this message
This function works exactly the same as xmlrpc_decode() except it gives you access to the method being called as well (xmlrpc_decode() only outputs the params from the XML-RPC call). To use this function, simply create an empty variable to store the method string in, and then pass by reference like so: <?php $method = null; $params = xmlrpc_decode_request('<xml rpc request>', &$method); ?> What you will get back are the params stored in $params, and $method will have the method being requested. --was-- This function works exactly the same as xmlrpc_decode() except it gives you access to the method being called as well (xmlrpc_decode() only outputs the params from the XML-RPC call). To use this function, simply create an empty variable to store the method string in, and then pass by reference like so: $method = null; $params = xmlrpc_decode_request('<xml rpc request>', &$method); What you will get back are the params stored in $params, and $method will have the method being requested. http://php.net/manual/en/function.xmlrpc-decode-request.php

« previous php.notes (#157242) next »