Due: 17 Feb 2012, 11:59pmAbstract
In this assignment, you will be augmenting the "forever alone" chat (Assignment 6) to save chat history, among other functionality. If you were not able to finish the prior assignment or would prefer to not use your solution, you may use the Instructor Solution for Assignment 6 as a code base.Assignment
Starting from the original forever alone chat, create an additional PHP file called alonesave.php that will process POST data sent to it by your chat form. You should rename the alone.html file to alone.php.
The sequence of events when a user views your site is as follows:
The timestamp that you prepend to a message should be in the form: (MM/DD/YYYY @ 24hr-time), e.g. (11/16/1974 @ 1300), (10/13/1961 @ 0900), (02/23/1964 @ 2010). Information for using PHP's date function is located at http://php.net/manual/en/function.date.php. Date string "m/d/Y @ Hi" should help.
As usual, your HTML output is still required to be valid HTML5. Validation will be done through http://validator.w3.org.Hints
For file reading and writing in PHP, we recommend the functions file_put_contents and file_get_contents.Homework Submission
As detailed on the homework submission page, this homework must be on the class web server in a folder titled homework8 for it to be graded.