Jump to content

Fetch information from other site


weaklund

Recommended Posts

Hi all,

I´m making a soccer web page for my soccer team. I want the webpage to update itself which means that such as resaults and next matches will update automatically.

 

I've read on several sites that you can use preg_match_all to do this but i don't understand anything about that function....

 

www.everysport.com has a feature that the call "puff". This feature is for people to include on their sites and to have a series table / next matches that updates itself. I dont like the formatting (colors and such) on the "puffs" so I would like to get the contents in arrays and then do the formatting myself.

 

I picture myself an array (matrix) that looks like this:

 

[Fredag 7 maj]        [bygdeå]    [Ljusvattnet] [19:00]

[söndag 23 maj]    [bergsbyn]  [Ljusvattnet] [16:30]

 

and so on....

 

This is the include-adress:  http://puff.everysport.com/team_puff_teamtable_include_4832397.html

 

and i would only like to have the next-matches in my array.

 

Could anyone help me?

 

Thank you in advance

 

Link to comment
https://forums.phpfreaks.com/topic/199651-fetch-information-from-other-site/
Share on other sites

hello.

 

Let me make sure I have understood what you are trying to do...

 

You want to take the information from another website and display it on your own website (after reformatting it).

 

If this is so, then I would recommend using the curl() function. There are plenty of tutes out there on it - so just google it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.