X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=demo%2Fclient%2Fwhich.php;h=f6ef45d11067fdab4e3b633df509328644ff3fb5;hb=d5fba766c7c3b7ef3e615d7cb0bbc3042855718f;hp=db2d8c17af726935c0c0704bdbc439efabde64c8;hpb=5f01a1f84d32893310c1d13e6d2720370a93f57d;p=plcapi.git diff --git a/demo/client/which.php b/demo/client/which.php index db2d8c1..f6ef45d 100644 --- a/demo/client/which.php +++ b/demo/client/which.php @@ -1 +1,26 @@ - xmlrpc

Which toolkit demo

Query server for toolkit information

The code demonstrates usage of the php_xmlrpc_decode function

send($f); if (!$r->faultCode()) { $v = php_xmlrpc_decode($r->value()); print "
";


    print "name: " . htmlspecialchars($v["toolkitName"]) . "\n";


    print "version: " . htmlspecialchars($v["toolkitVersion"]) . "\n";


    print "docs: " . htmlspecialchars($v["toolkitDocsUrl"]) . "\n";


    print "os: " . htmlspecialchars($v["toolkitOperatingSystem"]) . "\n";


    print "
"; } else { print "An error occurred: "; print "Code: " . htmlspecialchars($r->faultCode()) . " Reason: '" . htmlspecialchars($r->faultString()) . "'\n"; } ?> \ No newline at end of file + +xmlrpc + +

Which toolkit demo

+

Query server for toolkit information

+

The code demonstrates usage of the php_xmlrpc_decode function

+send($f); +if (!$r->faultCode()) { + $v = php_xmlrpc_decode($r->value()); + print "
";
+    print "name: " . htmlspecialchars($v["toolkitName"]) . "\n";
+    print "version: " . htmlspecialchars($v["toolkitVersion"]) . "\n";
+    print "docs: " . htmlspecialchars($v["toolkitDocsUrl"]) . "\n";
+    print "os: " . htmlspecialchars($v["toolkitOperatingSystem"]) . "\n";
+    print "
"; +} else { + print "An error occurred: "; + print "Code: " . htmlspecialchars($r->faultCode()) . " Reason: '" . htmlspecialchars($r->faultString()) . "'\n"; +} +?> + +