PHP Classes

File: test.php

Recommend this page to a friend!
  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: 19 years ago
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');
?>
For more information send a message to info at phpclasses dot org.