Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
183
PHP XML RPC Function EncodeRequest
PHP Version: (PHP 4 >= 4.1.0, PHP 5)
Description
This function generates XML for a method request for
RPC server.
This function converts request
into XML format so that it can be sent to RPC server. All requests to RPC
server should be encoded before it can be sent to the server. Let’s look at the
example below.
PHP
Code:
<?php
//the host URI which will be
served as a server
$host = 'localhost';
//the port of the server to
be used for communication
$port = 80;
//encode the request into
xml format before sending it to server.