Reading html from other sites with php

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
clownbarf
Forum Newbie
Posts: 6
Joined: Fri Sep 19, 2003 10:14 am

Reading html from other sites with php

Post by clownbarf »

I don't know where to start with this or what it's called. I want to take a top ten list from nascar.com from the source code and write the top ten to a file.
This will not be on any sites, just for my hal2000 to read this when asked for.

I got the part with getting all the code to a varible, and can even echo this our... where do I look for taking all the unwanted tags and keeps a certain section of the page that I want?

thanks
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

it is called 'web fetching', here are some tutorials..
http://www.hotscripts.com/PHP/Tips_and_ ... index.html

i havet read any of them myself so i dont know how good they are, but they should get you started.

have fun
clownbarf
Forum Newbie
Posts: 6
Joined: Fri Sep 19, 2003 10:14 am

Post by clownbarf »

Great... thanks... Just what I needed
Post Reply