Register user using xmpphp

Hi i have used the following code for register user in ejabbered but i couldnt register, i want to create user in ejabberd using php can any one give solution .
how to view ejabbered database.

http://anandafit.com/2011/05/10/register-new-xmpp-users-with-xmpphp/

I looked for ejabbered’s API but didn’t find anything. Got a link to it?

If it’s anything like the UI the CAPTCHA could be a bit complex

is there any other php library for connect to ejabbered to register ,get online users ?

That would depend on the ejabbered API

What doesn’t http://code.google.com/p/xmpphp/ do?

Need to create user registeration via xmpphp, but it doesnt work.

If the API doesn’t provide for registration, I don’t think it’s supposed to.

Why else would there be a CAPTCHA if not to stop script registrations?

can you please tell if there is way for user registration to ejabbered, how gtalk using xmpp protocol , i want to use in php

As I’ve said, I would need to look at the ejabbered API and I couldn’t find it. Got a lnk to it?