Welcome to WebmasterWorld Guest from 188.8.131.52
I can tell you that you'll need to know how to use AJAX, and have a library that handles AJAX calls efficiently and quickly. The YUI library does wonders in helping the client-side development, and its documentation is excellent. I would recommend using JSON encoding instead of XML no matter what solution you pick, as in a chat system you will need to have a request/response several times per minute for every user, and XML as a transmission mechanism is amazingly inefficient compared to JSON, especially for empty requests (I.E. no new messages have been sent since the last request).
The tricky part in building this sort of a system is that only the client can initiate communication with the server. In a normal instant-messaging scenario, the server initiates communication with the client, telling the client that a new message is available, then transmitting it.
Your server-side code will have to be lean and efficient--you won't have the luxury of spending even a half second processing the request if you want to have the chat interface seem responsive. Also keep in mind that the sheer volume of requests coming in at the same time can potentially be crippling with a large processing time if there are even 50 users online at any given time.
To my knowledge there are no tutorials available for building this sort of thing--they'd have to be long and involved, really, in order to have a prayer at being successful.
You'll need a solid knowledge of the following technologies to complete a web chat system:
CSS (inline HTML styling will use up so much bandwidth in transfers that your system -will- grind to a halt)
YUI (or other AJAX-capable library)
PHP has a wonderful json_encode() function that can encode any variable type into JSON, but it only comes bundled and enabled by default with PHP 5.2 or newer. Between this function and the YUI library (which includes a JSON decode function) your transmissions will be all but handled for you.