AJAX Chat in CodeIgniter
AJAX Chat is a free open source real time web chat implemented in JavaScript, PHP and MySQL that integrates nicely with common forum systems such as phpBB, MyBB, PunBB, SMF and vBulletin. This web chat application features private messages and channels, invite system, emoticons, flow control, message filtering and more. It is fully customizable and requires a server with PHP and MySQL 4 or later.
Ajax Chat is a simple and easy to use web chat that can be added to your website in just one line of code! Many other chat applications require you to pay for a monthly service from a 3rd party. With this self hosted solution, you can be the owner of your own chat system!
In this article, we'll take a look at an example of a real-time Ajax Chat application in CodeIgniter. We'll also show you how to add this to your site in just a few lines of code, and we'll demonstrate how to make it work using jQuery and Ajax.
A fun little project from 2006 when ajax first started becoming popular and jQuery was just starting to come around. This is a great project for students interested in learning how to create chat applications with PHP and Ajax, and would be very easy to adapt for other languages such as javascript or ruby. This chat uses a technique called long polling (also known as ping) to get updated chat information. This method is now considered a primitive and inefficient way of getting updated chat information, as the client has to constantly send requests to the server to be notified when there are changes.