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!
Beginner Needs Help
Started by newphp, Sep 30 2010 07:51 PM
3 replies to this topic
#1
Posted 30 September 2010 - 07:51 PM
|
|
|
#2
Posted 01 October 2010 - 01:07 PM
#3
Posted 02 October 2010 - 10:49 AM
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
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.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#4
Posted 04 October 2010 - 05:53 AM
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.
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."


Sign In
Create Account

Back to top









