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 :
215
PHP XML RPC Function GetType
PHP Version: (PHP 4 >= 4.1.0, PHP 5)
Description
This function returns the xmlrpc
type for php value.
Usage:
string xmlrpc_get_type ( mixed
value)
This function returns the xmlrpc type of the PHP value. Please look into http://www.xmlrpc.com/spec for more details on xmlrpc
specifications. In my example I have sent a structure as a response and return
value is also a structure.
PHP
Code for as a client:
<?php
function do_call($host, $port, $request)
{
$fp = fsockopen($host,
$port, $errno, $errstr);
$query = "POST /default/php/server.php HTTP/1.0\nUser_Agent: This is a Dummy
Client\nHost: ".$host."\nContent-Type: text/xml\nContent-Length:
".strlen($request)."\n\n".$request."\n";