Results 1 to 6 of 6

Thread: Copying text from one page and displaying it on your page?

  1. #1
    Join Date
    Oct 2004
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Copying text from one page and displaying it on your page?

    I want to create a site where I can automaticly record text on a web page and display it on my page.

    eg.
    Man U play Liverpool at the weekend.

    I want to record the: score, yellow/red cards, corners, etc...
    and display them on my page as live info.

    Im sure it can be done in the form of Java but im not sure of a site where I can find this information to learn the proceedures.

    Can anyone help???

    Even if there was a program that could do it for me?

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Let me try to understand what you're going for.

    You want to display live scores/stats from a football match as it's going on? Is that right?

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You might be able to use one of the scripts from this index:

    http://www.dynamicdrive.com/dynamicindex18/

    They require an RSS feed, but the sort of info that you are talking about usually has at least one, usually several public RSS feeds available for it. Some also require PHP to be available on your host (server). This is also quite common, but depends upon your host, and the type of account you have with them.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Oct 2004
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Basicly,
    lets use the eg above

    My Page:
    Will give the result:

    Man Utd 1 v 1 Liverpool

    When reading the page program would record: result1 = 1 ; result2 = 1

    Under this would have a list of goalscorers, eg

    Page:

    Man Utd 1 v 1 Liverpool
    38' Rooney
    58' Torres

    ie. scorer1 = "38' Rooney" ; scorer2="58' Torres"

    This information is copied from a web site whos layout doesnt change.
    Again with programming I should be able to add more sub-results...

  5. #5
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    There are two ways to tackle this...

    The first, as John mentions above, is to find a website that has a RSS feed of the stats. It looks like you want pretty specific details and I'm not sure how feasible that would be. Once you find a RSS feed, use any of the scripts that John linked to.

    This would be the easiest "automatic" way. Basically, set it up once and let it run.

    If you can't track down a RSS feed of this sort, your best bet is to set up a mini-CMS (content management system). There are plenty free ones available on the Net that you can use. Or you can develop your own. For ease of scalability, implementation, and support I'd recommend using a commercially available one. Some popular ones are Wordpress, Drupal, Joomla, Textpattern, MovableType. My personal favorite is ExpressionEngine. That's the only one from the whole lot (I've tried them all) that I'd wholeheartedly recommend.

    Using a CMS would mean that you would have to manually enter the statistics. The formatting wouldn't be a problem but it would take a lot of effort on your part if you want the stats to refresh at a relatively speedy rate.

  6. #6
    Join Date
    Oct 2004
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Cheers lads,

    Think Ill have a go at the first one. jscheuer thanks a million.

    Also for the future that CMS idea could work. Thanks Medyman for your help also...

    Im sure Ill be back with another Q soon

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •