Free jQuery/PHP Powered Chat Room, Fully jQuery/JavaScript.
we are going to build a little chat program that is really easy to get up and running on any server running PHP. No database is required – as the chat will store itself in a simple text file.
The technologies used:
- PHP – Will handle all the server side stuff
- Writing new messages to the text file
- Reading out new messages from the text file
- Retrieving the “state” of the text file
- Basic security
- jQuery/JavaScript – Will handle the client side stuff. This is an AJAX-y application, meaning that messages pop onto the screen (both yours and others) without needing any page refresh.
- Periodically asking the server if there are new messages that have been posted
- Appending new messages to the chat
- Scrolling the chat down to the most recent messages
- Asking and setting the user name
- Limiting the text input to prevent gigantic ridiculous messages
- Basic security
Full Article Link: http://css-tricks.com/jquery-php-chat/
Demo Link: http://css-tricks.com/examples/Chat/
Download Link: http://css-tricks.com/examples/Chat.zip