Starting from:

$25

CS213-Lab 5 Part 1 Solved

CS-213 : Lab 5 : PHP2 part 1 statement


1. WORD FREQUENCY COUNTER:

•    Take a text file as input, using file input in HTML on index.php

•    Validate that the taken input file is with extension .txt; if it does not have .txt extension, show an error message and redirect it to upload the file again.

•    In php, check if (file size less than 2KB), display error otherwise.

•    The text file has to be processed to produce the frequency count of (number of occurrences) of each word sorted in alphabetical order as a HTML table

•    Frequency count must be case-insensitive (e.g. both ’Hey’ and ’hey’ would be counted under the same word ’hey’)

More products