Chapter 2. Files in the distribution

the XML-RPC classes. include() this in your PHP files to use the classes.

the XML-RPC server class. include() this in addition to to get server functionality


demo which retrieves a state name from a number using Dave Winer's XML-RPC server at


a sample server hosting three functions: a US State lookup tool, a struct sorter and an echo function.

client.php, agesort.php, echotest.php

client code to exercise the various functions in server.php

base64test.php, stringtest.php

Tests to verify that encoding and decoding of base 64 and entities is functioning correctly.


examples of how to construct xmlrpcval types

demo1.txt, demo2.txt, demo3.txt

XML-RPC responses captured in a file for testing purposes (you can use these to test the xmlrpcmsg->parseResponse() method).


Testing that HTTP response detection works OK.,

Perl and Python programs to exercise server.php to test that some of the methods work. Make sure you point these at your server, not mine!


Frontier scripts to exercise the demo server. Thanks to Dave Winer for permission to include these. See Dave's announcement of these.


Fred Yankowski's unit test framework for PHP.


Fred Yankowski's unit test framework for PHP.


Start of a unit test suite for this software package. If you do development on this software, please consider submitting tests for this suite.


A demo of the interopEchoTests.whichToolkit method.

discuss.php, comment.php

Software used in the PHP chapter of The Jellyfish Book to provide a comment server and allow the attachment of comments to stories from Meerkat's data store.