kaushalac — 2012-08-23T06:14:25-04:00 — #1
How to fetch live cricket score in my webpage using curl?
cpradio — 2012-08-23T08:01:32-04:00 — #2
I'd start with the book of curl and take a look at the basic example which loads a URL and writes it to a file to be read later.
That should help get you started, and once you have some code or more specific questions, we can assist in those as well.
snickn — 2012-08-23T08:19:43-04:00 — #3
You may be able to pull via RSS from somewhere like [this and embed it in your site using something like [url=https://www.rssinclude.com/]this](http://static.cricinfo.com/rss/livescores.xml)
kaushalac — 2012-08-23T08:41:48-04:00 — #4
Thank you both cpradio & snickn for your help. I am checking it as you both suggested & if I found any problem then will put a mail
Thank you again.
system — 2012-08-23T16:28:10-04:00 — #5
Use the built-in php function cricketScore();
You can get the score for any team by doing this: cricketScore('WestIndies'); and it will automatically find the score for that game for you.
kaushalac — 2012-08-24T00:16:26-04:00 — #6
Thank you aaarrrggh, for your answer but crickerScore(); is not an inbuilt function of PHP.
I used it like this echo cricketScore('India'). But it says that it is undefined function.