How to read the fields of the table of a external page
Moderator: General Moderators
-
pancho06021981
- Forum Newbie
- Posts: 3
- Joined: Wed Jul 23, 2003 9:44 am
How to read the fields of the table of a external page
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
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
...
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?
Does that help or you want a code example?
-
pancho06021981
- Forum Newbie
- Posts: 3
- Joined: Wed Jul 23, 2003 9:44 am
thanks for you answer
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?
-
pancho06021981
- Forum Newbie
- Posts: 3
- Joined: Wed Jul 23, 2003 9:44 am
iam sorry
je,
you are right, I apologize, thanks