The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

PHP and XMLRPC Web Service

I am using PHP and Edd Dumbill's XMLRPC code to create a web service for my senior thesis. On my client page I included the server page and on the server page I included xmlrpc.ini and xmlrpcs.ini. My problem is that on the client page I can access the xmlrpcmsg function but after getting a result back I cannot use $len= $val->arraysize() to get the length of the array that was returned from my server. Here is the error as it reads on the web page.

Fatal error: Call to undefined function: arraysize() in /usr/web/staging/ryanthesis/results.php on line 57

Also do not use relative URLs in your include statements.
If your client page is in: example.com/client/page.php
And you server page is in: example.com/server/XMLRPC.php
And...example.com/server/xmlrpc.ini ...example.com/server/xmlrpcs.ini

When you include the server page in your client page, then include the ini files from the server page, using:
include('xmlrpc.ini');
include('xmlrpcs.ini');

You are actually saying:
include('example.com/client/xmlrpc.ini');
include('example.com/client/xmlrpcs.ini');

Nothing I have tried has worked so far. I'm going to copy some of my code here and post the link as well. Hopefully you will see what I am missing. Ignore the commented out code.
This is code from my client:

<?php

/* Include a file that defines all the xml-rpc "methods" */
include("web_service_api.php");
//include ( "xmlrpc.php" );

Thats because those two functions are in the xmlrpc.php that were included. I have been working on this today so I might have changed something around and that could be why you didn't get that error messege. I will try and revert it back so that the error messege shows up again. I will post when I have it ready for you to try.