PHP Code, Setup and Demo of Jaxl boshchat application

August 17, 2010   -   PHP, XMPP   -   80 comments

Jaxl 2.0 bosh support allow web developers to write real time web applications within minutes, without having any pre-requisite knowledge about the XMPP protocol itself. In this blog post, I will walk you through setup and demo of an XMPP based web chat application using Jaxl library. Get the code Follow the following steps to [...]

Releasing Jaxl 2.0 – Object oriented XMPP framework in PHP

August 2, 2010   -   Open Source Projects, PHP, XMPP   -   6 comments

After months of restructuring the Jaxl library, I am pleased to announce Jaxl 2.0, an object oriented XMPP framework in PHP for developing real time applications for browsers, desktops and hand held devices. What’s new in Jaxl 2.0? A lot of structural changes has been done from the previous version to make it more scalable, [...]

Setting Nginx, PHP Fastcgi and XCache on a new Ubuntu

April 29, 2010   -   Web Development   -   5 comments

Recently, because of a mandatory VPS move I had an opportunity to migrate all my sites from apache to nginx. My old box was in a messy state and setting up a new box from scratch was always going to be fun. Here in this post, I will walk you through all the steps that [...]

Writing your first facebook chat bot in PHP using Jaxl library

February 11, 2010   -   XMPP   -   57 comments

Today facebook officially announced availability of it’s chat through jabber/xmpp clients. This is a big win for XMPP, with almost 400 million new probable users adding into XMPP club. In this post, I will demonstrate how to connect to facebook chat servers using Jaxl client library in PHP. It can further be used to make [...]

MEMQ : Fast queue implementation using Memcached and PHP only

February 7, 2010   -   PHP, Scalability   -   17 comments

Memcached is a scalable caching solution developed by Danga interactive. One can do a lot of cool things using memcached including spam control, online-offline detection of users, building scalable web services. In this post, I will demonstrate and explain how to implement fast scalable queues in PHP. MEMQ: Overview Every queue is uniquely identified by [...]

JAXL BOSH Demo: IM chat client for all WordPress blogs

January 29, 2010   -   WordPress, XMPP   -   35 comments

Have you ever wished of a wordpress plugin capable of providing a facebook style chat bar on your blog post. In this blog post, I will lay down the details of how Jaxl‘s bosh support comes in handy for building such browser based real time application. Specifically, I will explain how I achieved building a [...]

Get real time system & server load notification on any IM using PHP and XMPP

January 12, 2010   -   XMPP   -   20 comments

There are various system and server related information which server administrators always need to have as soon as possible, infact I must say in real time. There are several open and closed source softwares in the market which can generate almost real time notifications for you. Most famous one being Nagios. In this blog post [...]

Get lyrics for any song using XMPP and PHP right into your IM – Add lyricsfly@gtalkbots.com

January 7, 2010   -   XMPP   -   17 comments

XMPP is soon finding it’s way into real time applications other than just chat. I have combined JAXL (Jabber XMPP client library written in PHP) and the API from lyricsfly.com to build a real time chat bot which can assist you with lyrics for any song. You can start using it by simply adding lyricsfly@gtalkbots.com [...]

WordPress style "Duplicate comment detected" using Memcached and PHP

January 2, 2010   -   Scalability   -   8 comments

If you have a knack of leaving comments on blogs, chances are you might have experienced a wordpress error page saying “Duplicate comment detected; it looks as though you’ve already said that!“, probably because you were not sure that your comment was saved last time and you tried to re-post your comment. In this blog [...]

How to use locks in PHP cron jobs to avoid cron overlaps

December 28, 2009   -   PHP   -   39 comments

Cron jobs are hidden building blocks for most of the websites. They are generally used to process/aggregate data in the background. However as a website starts to grow and there is gigabytes of data to be processed by every cron job, chances are that our cron jobs might overlap and possibly corrupt our data. In [...]

Powered by Wordpress. © 2008-2010 All Rights Reserved.