Question: PHP CODE QUESTION Thank you Your task is to create a PHP script which fetches the specified student's information from the file students.txt, printing it

PHP CODE QUESTION

PHP CODE QUESTION Thank you Your task is to create a PHP

Thank you

Your task is to create a PHP script which fetches the specified student's information from the file students.txt, printing it as shown in the example output. If the file isn't found, print "File not found!". The student's student number is used to find it. If the specified student isn't found, print "No student found with the provided id!". Each line on students.txt contains a student number, name, and whether they have registered for attendance. These are separated with the pipe character and each student's information is on its own line. If the student is attending, the number at the end of the line is 1, otherwise it's o. Thus, the structure of the file is like this: 1234| Sarah Student 1 4321 Cara Coder0 7364 Daniel Diligent1 The form sending the information is as follows:

Input student number:

Example output: Pete Programmer (86421): not attending

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!