Question: Using the combination of HTML and PHP , implement a web page where the users can upload a text file, exclusively in . txt format,
Using the combination of HTML and PHP implement a web page where the users can upload a text file,
exclusively in txt format, which contains a string of numbers x such as:
Your code should contain a PHP function that, accepting the string of numbers in input, is able to:
Find the adjacent numbers that added together give the largest sum.
Given the addition from above, computes the sum of the factorial of each term of such sum
Example, if the sum is computes
NOTE:
If the file does not contain numbers or contains some characters in between the numerical values, it
should be discarded and the application should inform the user that the file is not formatted correctly.
Add a tester function to check the behavior of your PHP function, plus checks on the file content.
Follow the guidelines on how to safely let the users upload files discussed and showed in class to avoid losing
points.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
