Page 1 of 1

How to read the fields of the table of a external page

Posted: Wed Jul 23, 2003 9:44 am
by pancho06021981
Excuse my bad english, I have a problem, I am making a generator of schedules, which must read data of a table of HTML of a external site (the page of the school), how I can read those data that are of a HTML table, and pass them to a structure in php, thanks for its reading

...

Posted: Wed Jul 23, 2003 1:27 pm
by kettle_drum
Just open the external file using fopen and then grab all the data from this file using fget and once you have got all the data do what you like with it. In your case remove all the unwanted data and then print the results to the page.

Does that help or you want a code example?

thanks for you answer

Posted: Wed Jul 23, 2003 2:47 pm
by pancho06021981
thank for you answer, the saying by you is correct, but my problem is: I open a page(example "http://www.schooll.com/consult.asp?class='compilers '", I put asp to emphasize that it is an external site), and in that pagina shows the result to me in a table. as I can program in php that something that opens in screen to be able to read it or to keep it in a file?

iam sorry

Posted: Thu Jul 24, 2003 3:28 pm
by pancho06021981
je, :( you are right, I apologize, thanks