Categories


Loading feed
Loading feed
Loading feed

Ajax Chat Tutorial

Creating a chat application is not a difficult task. Honest! This tutorial is a step by step introduction to creating a lightweight chat application using XML as a storage medium. As personal motivation, I develop PHP games as a hobby. In pursuit of that hobby I’ve found that offering a flat threadless forum in such games tends to result in heavy usage as players attempt to use it as a chat room. The reason is that even with the advent of irc and instant messengers, users continue see an alternative web based solution as attractive for a number of reasons whether its limited access to instant messengers through a corporate proxy or simply for convenience sake.

AJAX Chat Tutorial Part 7 : Usability Improvements

The final part of our 7 part tutorial on creating an ajax chat system using MySQL and the Zend Framework.

AJAX Chat Tutorial Part 5: The Javascript, Sending Chat Messages, Screen Name Changes

Part 5 of our 7 part tutorial on creating an Ajax based Chat application.

AJAX Chat Tutorial Part 4: IndexController MessageAction() and JSON Encoding

In part 4 of this tutorial we take a look at adding a new MessageAction method to our current Controller. This will expect one piece of information: a new chat message.

AJAX Chat Tutorial Part 3:Storage Medium, XML and the Message Process

As our chat application gathers pace we return to the server side of the application. At this point we have setup the Zend Framework with an IndexController class to handle server requests. After the initial loading of our HTML interface, we will expect all further server requests to be issued via AJAX (courtesy of Prototype and the XMLHttpRequest object) on the client side. We’ll see this in Part 5.

Asynchronous File Upload from anyexample.com

This weekend I found an interesting article over at anyexamples.com on using AJAX and PHP to do asynchronous file uploads. Click on inside and I’ll give you the details.

AJAX Chat Tutorial Part 2:Prototype, Scriptaculous, Application HTML

In this week’s installment, we setup the HTML and JavaScript for our AJAX Chat application.

AJAX Chat Tutorial Part 1: Introduction, The Zend Framework

This tutorial is a step by step introduction to creating a lightweight chat application using XML as a storage medium.

Building Your Own AJAX Web Applications

I’m way behind on my book reviews. I’ve got a stack that’s still knee-high and I know that there are more on the way. So let’s pop one off the stack and take a peek into it shall we? This time it’s “Building Your Own AJAX Web Aplications” by Matther Eernisse and published by SitePoint. Come one in, kick your shoes off and let’s talk a while.

Decorating with External Data

While working on a project I realized one particular solution was a pretty good way to demonstrate the decorator design pattern together with some of PHP5's features, including abstract classes, interfaces, type hinting, the final keyword and the visibility of properties and methods. This article is intended for those of you who, like myself, are moving from object-oriented programming, including some use of design patterns, in PHP4, to the more complete object model of PHP5. Part of the reason for writing it, was to get to grips with most of these concepts myself, I had also wanted to demonstrate an example of the use of the decorator that involved interaction with an external data source.