cronik,
print $xmlapi->createacct($acct);
that likely won't work. (I think the examples that ship with xmlapi.php erroneously have that [I'll open a ticket to get that updated]). The default return from those query methods is a SimpleXML object, so, calling 'print' on an object is not meaningfull. You will need to traverse the the object to determine the state of action.
There are a couple of ways you can go about it.
1) change the output to 'array' with set_output() prior to the api call, and iterate that response
2) use the SimpleXML object's method interface (that should map the the nodes of the response)
In either case, depending on the exact function, you will want to evaluate the status node: "<status>$some_bool</status>". The
Remote API function documentation should have examples of the expected output
Depending on how you have your PHP error settings, and how you PHP is getting executed, set_debug(1) may or may not render a copy of the response; once that is established correctly for your development environment, you can get an idea of what you're traversing. I suggest doing a forum/google search for xmlapi.php and display_errors(): Somewhere I've written a length post or two about that specific topic. (if you can't find it or are still having trouble, let me know)
Regards,
-DavidN