ChatterBox is a personalized chat application built using PHP and MySQL, offering a user-friendly experience with real-time messaging and voice message integration. The application features secure password encryption, active user status, and a clean, responsive interface.
- Build a personalized chat application for private communication.
- Provide a voice button feature for a more user-friendly chat experience.
- Ensure seamless interaction using MySQL for database management and PHP for server-side scripting.
- Encrypt password data for enhanced security.
- Display active and inactive statuses for users.
- User Authentication: Login and sign-up system with encrypted password storage.
- Real-Time Chat: Users can chat with others in real-time.
- Voice Messages: Users can send voice messages to enhance communication.
- Active Status: Displays whether users are online or offline.
- Profile Pictures: Users can upload and display their profile pictures.
- Responsive Design: The app is accessible across various devices with a smooth user interface.
Before setting up ChatterBox, ensure that the following software is installed:
- XAMPP: A local server environment that includes Apache, MySQL, PHP, and phpMyAdmin. You can download it from this link.
- Download and install XAMPP from the official site according to your operating system.
- Make sure to install XAMPP in C:/Program Files to avoid potential errors. If you encounter UAC (User Account Control) issues, you can choose another location, but you might need to adjust some settings.
- Open the XAMPP Control Panel and start Apache and MySQL services.
- Click the Admin button next to MySQL to access phpMyAdmin. Alternatively, you can visit phpMyAdmin directly by typing
localhost/phpMyAdmin
into your web browser.
- Navigate to the XAMPP installation folder, typically located at:
C:/xampp/htdocs/
- Copy the ChatterBox project files into the
htdocs
folder. This should include all PHP, JavaScript, and image files.
- Import the
Chatapp.sql
file using phpMyAdmin to set up the required database and tables for the application. - Open phpMyAdmin, click on Import, and choose the
Chatapp.sql
file from your local system.
- htdocs/: Contains all project files.
- /php/: Contains PHP files.
- /js/: Contains JavaScript files for frontend interactions.
- /uploads/: Contains user-uploaded files, including profile pictures and voice messages.
- /images/: Contains default and user-uploaded images.
- Login Page: Users can log in using their registered credentials. All fields are required.
- Sign-Up Page: New users can register by providing their details. Once registered, they can log in and start chatting.
- After logging in, users will be redirected to the main chat interface.
- The chat interface displays:
- List of active users: Shows users who are currently online.
- Chat area: Where users can send and receive messages, including voice messages.
- If no messages have been sent, a message will indicate that the conversation has not started yet.
- Users can send text messages, which will be displayed in the chat area.
- If the message is sent from both sides, it will be visible to both users in real-time.
Include screenshots to showcase the login page, chat interface, and active user status.
- PHP: Server-side scripting
- MySQL: Database management for storing user credentials, messages, and activity status.
- JavaScript: Frontend interactions
- HTML/CSS: Structure and styling for the web interface.
- Bootstrap: For responsive design.
- Passwords are securely encrypted before being stored in the MySQL database.
- Users' activity status (Active/non Active) is updated in real-time to improve user experience.
- Open your web browser and navigate to
http://localhost/ChatterBox/
to access the application. - Register or log in to start chatting with other users.
- Use the voice message feature to send audio messages.