Choose a nickname


Mini Chatbox is a small text chat program written in PHP / Javascript with data backup in a JSON file. It was developed by Christophe Leblanc in 2017 and slightly improved in 2018.

This program contains the basic features of a chat.

On the client side, it allows you to see the messages in near real time thanks to an automatic call every 2 seconds and emits a sound when a new message has been posted. It also allows you to post a message, with a username or anonymously.

On the server side, the PHP code takes care of recording a sent message or returning a list of messages. A function is used to prevent any message containing a prohibited string from being recorded, based on a text file containing the list of forbidden character strings. The JSON file containing the chat data is protected by HTACCESS.

The demo available on this site has an additional function that removes old messages regularly.

The program is distributed as a demo, in the hope that it will be useful, without any license or restriction. You can modify and redistribute it without restrictions.

The comments made in the demo available on this site are solely the responsibility of the authors and are their responsibility. We can not be held responsible for any misuse of the service.


Creative Commons License

This document by Christophe Leblanc is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.