PHP Classes
elePHPant
Icontem

File: client.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gregory  >  PHP RPC Lite  >  client.php  >  Download  
File: client.php
Role: Example script
Content type: text/plain
Description: Client example
Class: PHP RPC Lite
Simple RPC client and server based only on PHP
Author: By
Last change: *
Date: 10 years ago
Size: 247 bytes
 

Contents

Class file image Download
<?
require_once 'lib/class.client.inc';
$url = "http://gregory.pp.ru/rpc/server.php";

$rpc = RPC::Proxy($url);

echo
$rpc->get_service_name()." @ ".$url."\n";
echo
"2 + 3 = ". $rpc->sum(2, 3)."\n";
echo
"Ping = ".$rpc->uptime." mS\n";
?>