Hi,
I have had a look around for a good library to communicate with my openfire server via php, however this is proving to be much harder than expected. XMPPHP is returning BOSH errors and JAXL is not faring much better. So I thought some of you guys could help me out. I am planning on releasing a very basic chat platform, in that only a few features are required, such as checking if users are online and and sending / receiving messages. The impression that I have got is that both JAXL and XMPPHP have been written for chat bots, not chat clients. So, I thought I would have a go building a PHP class for the basic communication with Openfire. Just a few Q’s:
- Is BOSH a necessary part of the process, and is it desired over polling the Openfire server? Please correct me if I am wrong, however after reading around it seems that BOSH is to Openfire => PHP as COMET is to PHP => Javascript. Can cURL be used to handle this.
- Can anyone point me in the direction of some openfire documentation detailing where to send such requests and how to implement them. I have looked around and all I can find is XMPP specification links.
- If it isn’t in part 2, what is the resource URL to hit in order to make the request?
Thanks,
Hamish