X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=demo%2Fclient%2Fwhich.php;h=8b1ba488d5630e231255e2566852469bbaf37fab;hb=4c4c28971620235b1a225c106dfad85a87731a25;hp=0699c8bb6e307bb0d5923fbbcc50abbbb53f4eeb;hpb=aafee68e34ad3b334b55dc5f22f90db985b53c6a;p=plcapi.git diff --git a/demo/client/which.php b/demo/client/which.php index 0699c8b..8b1ba48 100644 --- a/demo/client/which.php +++ b/demo/client/which.php @@ -1,32 +1 @@ - -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"; - } -?> -
-$Id$ - - + 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