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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
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

Post 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
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

...

Post 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?
pancho06021981
Forum Newbie
Posts: 3
Joined: Wed Jul 23, 2003 9:44 am

thanks for you answer

Post 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?
pancho06021981
Forum Newbie
Posts: 3
Joined: Wed Jul 23, 2003 9:44 am

iam sorry

Post by pancho06021981 »

je, :( you are right, I apologize, thanks
Post Reply