This application was a project-exam collaboration that showcases certain Java topics. The highlighted topics were Loops, Arrays, Methods, and File I/O. The challenge here was to create a unique application to avoid the deduction of points. Fortunately, this project got a perfect score of 100.
We implemented our current topic in PHP, Handling Requests. The PHP website will serve as a server to accept requests from the clients. It will create text files and implement changes to it. The text file is the chat room that holds the messages. It will then be read line by line by the Java application.
No security implementations were added
First and foremost we should create a server (Website). The website should have:
- index.php
- txt/
The index.php file can be found in project/server/. Upload it into your public_html folder and create a txt folder alongside the index.php.
In the Main.java line, the domain variable needs to be changed. Just put your website's domain that holds the index.php.
E.g.
public static String name = "Anonymous", room = "", domain = "http://alecblance.com/";
Head over to your java application and run it. The first step should be creating a room. After that, you may play with the commands and settings.
Room Commands
/b - Back to Menu /s - Saving room to your local computer /r - Refresh
Java - Programming Language PHP - Programming Language
- Alec Blance
- Almira Ruby Montalvo
This project is licensed under the MIT License - see the LICENSE file for details
- Niel Bunda - Teacher