Taking part of a webpage and putting it on yours

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
MattSharp
Forum Commoner
Posts: 62
Joined: Wed Apr 24, 2002 2:25 pm

Taking part of a webpage and putting it on yours

Post by MattSharp »

Like weather or sports. I want to read a file and get the data for like the local weather and the sports standings. What is the best way to do something like this? Just open the file and look for like a unique line or what? Thanks for the help.
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post by []InTeR[] »

If you take the whole content, and just change some layout you can str_replace stuff.

The best thing is to ask the webmaster if he has a export in xml for you.
Most 'local weather and the sports standings'-site has this.
Post Reply