Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
133
rated 0 times [  135] [ 2]  / answers: 1 / hits: 16838  / 7 Years ago, thu, august 10, 2017, 12:00:00

I am currently a Student, developing a Website for an Online Course Planning for Monash I am Stuck with a reading HTML files in my PHP code



I need to Upload a File (Unofficial Records of a Student) and once I Click Upload, the System MUST Scan the HTML file and read through the Tables from the first (of the academic Records to the Last one) where it says Incomplete and it must evaluate the Grade, if it is a P, C, D, HD, the System will automatically Cross that unit for the Student, if the Student has Failed, it will be a N and the System must automatically highlight the Unit in order to tell that the student needs to re do the Unit



when the Academic Record is saved from the official Monash website, it saves automatically as a HTML, so i have no way in changing that



(Note that it is a student who will download in future use, not programmers, so they might not know how to convert it)


More From » php

 Answers
59

Like so - to read the file?



<?php
$text= file_get_contents('yourfile.htm');
echo $text;
?>


Once you have it grabbed, you can parse the HTML - see here:
PHP Parse HTML code


[#56809] Tuesday, August 8, 2017, 7 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
antoinette

Total Points: 206
Total Questions: 99
Total Answers: 95

Location: Guam
Member since Tue, Nov 29, 2022
2 Years ago
;