Talker is a chat application built using PHP, MySQL, and JavaScript. Users can create accounts and then chat with other users in real time.
- Create a new account
- Log in and log out
- Chat with other users
- View chat history
- Real-time chat updating
- Protected against SQL injection
- Automatic deletion of all files and database data (except user account information) every 3 hours
- PHP 7.0 or higher
- MySQL 5.7 or higher
- Web server (e.g. Apache, Nginx)
To use Talker, you will need:
- Clone this repository to your web server using git clone.
- Update the
$databaseName
variable in the PHP files to match your MySQL database settings. - Ensure that you have established a connection with MySQL. Once you have done so, check the console in
index.php
to verify whether the database initialization was successful. - decide if you want to use tokens, if you choose to create tokens generate them if not comment on parts of code in
dbOperations/CreateTokens.php
andPages/UserAuth.php
- Create a new account by entering a username and password on the registration page.
- Login using your newly created account.
- Chat with other users in real time on the chat page.
- View chat history by scrolling up in the chat window.
If you would like to contribute to the Talker project, please follow these steps:
- Fork the repository and create a new branch for your changes.
- Make your changes and test them locally.
- Submit a pull request with a description of your changes.
Talker includes a feature that automatically deletes all files and database data (except user data) every 3 hours to protect users' privacy. The code in ServerSideOperations/CheckDateForWipeOut.php
controls this feature. To change the time interval, update the equation in the CheckDateForWipeOut.php
file.