Jump to content

Beginner Needs Help

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
newphp

newphp

    Newbie

  • Members
  • Pip
  • 3 posts
Hey all, i'm starting to write a website and and looking on how to get started with a few ideas. I would like to add live sports scores to my website - but don't really know how to go about it. I've seen that most places take them from a feed (much like RSS) - and then use a script to read the feed and output them. That's about all I know though! Can anyone point me in a direction on even what I need to learn to figure this out?

Thanks!

#2
DEViANT

DEViANT

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 358 posts
PHP: Hypertext Preprocessor

W3Schools Online Web Tutorials

:D You should rep+ me so that I can win :D

My Blog | Ask me!
Error : Satan did it

#3
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
Actually PHP wouldn't be needed, AJAX would be live and be simpler to implement and only uses Javascript.

You will wish to look up a tutorial on connecting AJAX to an RSS feed.. maybe something like this:
XML.com: RSS and AJAX: A Simple News Reader
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#4
SoN9ne

SoN9ne

    Programmer

  • Members
  • PipPipPipPip
  • 129 posts
Well, PHP may be necessary if there are limitations on the API. Personally, I would cache the stats in a cron every 5-15 minutes to decrease API calls and prevent possible brute force (of course this is assuming that the site will get heavy traffic).

Otherwisw Nullw0rm is correct. This can be done with only AJAX but I always found it better to create a caching mechanism to increase page loads and reduce the chances of brute force attacks on the API server.
"Life would be so much easier if we only had the source code."