simpleChat is a tiny php/html/js project for playing around with ajax and sessions within a web app chat.
It's ugly coding and not safe for work productive - be aware of that.
- have a webserver running
- have read and write permissions in project dir especially log/log.htwl
- jquery 1.9.1
- bootstrap 3.3.6
- user has to log in with a nickname
- this name is used for posting ajax requests inside a session
- posted messages will be stored inside the "log/log.html"
- "log/log.html" will be read every few ms and show content in chatbox
- logged in user can exit chat with clicking "exit" button
- session will be destroyed
Just download the zip file and extract it in your webserver root.
Create an empty "log.html" with read and write permission inside the log/ folder.
Then call the index.php - like: localhost/simpleChat/index.php.
For trying functionality you could open the url in two different browsers on your machine.
You could also put it on a remote server - e.g. a RaspPi - in your home network , making it accessible for roommates, friends and family.
Enjoy simpleChat