Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Cabal
New Member
New Member


Joined: Nov 26, 2004
Posts: 7

PostPosted: Fri Nov 26, 2004 5:24 pm Reply with quote

HELP !! Smile

i want to parse a league table for my rugby club into a block from
Only registered users can see links on this board! Get registered or login!

is this
a. possible ?
b. go on gimme a hint how , ya know you want to Smile

thx in advance
 
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Fri Nov 26, 2004 6:38 pm Reply with quote

Parse a table? Normally you don't parse a table because the columns already have what you need. Please explain.
 
View user's profile Send private message
Cabal
PostPosted: Fri Nov 26, 2004 7:35 pm Reply with quote

ok sorry for being vague

basically i want to build a block that contains the league table from that site on my site

i dont want to link to it
 
Raven
PostPosted: Fri Nov 26, 2004 10:48 pm Reply with quote

It is possible. You should just ask the webmaster to send you a feed, probably just make an xml feed available. That would be the easiest way. But, otherwise, you will first want to use file_get_contents() to read the web page into a variable, like

$content=file_get_contents('http://www.rfu.com/index.cfm/fuseaction/res.LeagueTable/PoolID/101/Season/2004');

Then you will have to parse $content to extract the pieces you want. Finally, place them all into $content so the block will automatically display them.

You can find an example of this in my KISSQ (Stock Quotes). Download it and review the code.
 
Cabal
PostPosted: Sat Nov 27, 2004 5:38 am Reply with quote

sweet thx for the pointers
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©