/chatapp

Primary LanguageJavaScript

Simple Chat App

This is a simple chat application that allows users to send and receive messages in real-time. It is built using PHP, JavaScript, jQuery, JSON, AJAX, and Bootstrap.

Features

  • Users can send messages in real-time.
  • Messages are displayed with the sender's username and timestamp.
  • Users can reset the chat history.

Technologies Used

  • PHP: Used for server-side logic and managing chat sessions.
  • JavaScript: Used for client-side interactivity and AJAX requests.
  • jQuery: Used for DOM manipulation and event handling.
  • JSON: Used for exchanging data between the client and server.
  • AJAX: Used for asynchronous communication between the client and server.
  • Bootstrap: Used for styling and layout.

How to Use

  1. Open index.php in a web browser.
  2. Enter your username and start sending messages.
  3. To reset the chat history, click the "Reset Chat" button.

Files Included

  • index.php: HTML file containing the chat interface.
  • script.js: JavaScript file containing client-side logic.
  • chatlist.php: PHP file containing server-side logic for managing chat sessions.