Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ivan Ristic  >  XML-RPC Class Server  >  test.php  >  Download  
File: test.php
Role: ???
Content type: text/plain
Description: XML-RPC client example
Class: XML-RPC Class Server
Turns any PHP class into an XML-RPC server
Author: By
Last change:
Date: 2002-05-09 19:45
Size: 550 bytes
 

Contents

Class file image Download
<?
include_once("./xmlrpc-utils.php");
include_once("./class.remotetest.php");

define('XCS_HOST', $HTTP_SERVER_VARS['SERVER_NAME']);
define('XCS_URI', dirname($HTTP_SERVER_VARS['REQUEST_URI']) . '/xcs.php');

?>

<b>Description</b><br>
This is script is supposed to call a method
on the remote object, through a proxy object.
The result should be "<b>Hello Ivan!</b>". The
remote URL we are calling is <b><?
echo XCS_HOST;
echo XCS_URI;
?></b>

<br><br>
<b>Result</b>:
<?
$test = new Test(42);
echo $test->sayHello('Ivan');
?>