Blog Posts

Jabber "Middleware" with PHP

Over the weekend, I had the idea to implement (some time in the maybe distant future) Instant Messaging capabilities into Bitflux CMS and/or Kaywa Blog. For example, workflow messages could be posted with that or little notes on the blog or you-name-it.

Jabber is of course the software which comes to mind in that case. Jabber is really cool. I experimented a little bit and also set up a jabber server (you can reach me now with the JID chregu [at] bitflux.org ;) ).

The tricky part was then to get it integrated somehow into a webpage and I found fenchurch, which is a Jabber "Middleware" daemon writtten in PHP. It connects to your jabber server, transmits and receives all the messages and writes them into a MySQL database. This MySQL database can then be queried from your frontend PHP scripts. Therfore you don't have to deal with jabber connections on every page request. Looks very useful for the purposes I have in my mind.

Fenchurch is based on Class.Jabber.PHP, a class which allows you to easily connect to and interact with a Jabber server.

Comments [1]

ZZ/OSS Weblog , 01.10.2003 18:03 CET (Trackback)

Jabber \"Middleware\" with PHP
Chregu writes about a Jabber Daemon implemented in PHP that communicates with the Jabber server and writes messages to a MySQL DB.

Add a comment

Your email adress will never be published. Comment spam will be deleted!