Football Results Include Tables

Started on the old forum in July 2008 · view the original in the archive · old links redirect here

2 replies · 528 views · started 18 years ago · 1 min read

Guest #1

Havent a clue if this is possible or not but. Is there a way to code a script that shows premiership and spl live scores and results. Then automatic updates the league table after the results comin in

learner Lead · 587 posts #2

here brother

echo "Live Soccer Scores:
";
$feed = "http://www.scorespro.com/rss/live-soccer.xml";
$fp = @fopen($feed,"r");
while(!feof($fp)) $raw .= @fgets($fp, 4096);
fclose($fp);
if( eregi("<item>(.*)</item>", $raw, $rawitems ) ) {
$items = explode("<item>", $rawitems[0]);

  $p = 5;
  if ($npage == "")$npage = "1";
  $countfile= count($items);
  $countfile=$countfile-2;
  $first=($npage*$p)-$p;
  $npages = ceil($countfile / $p);
  $items = array_reverse($items);
  $next_arrays=($first+($p-1));
  if($next_arrays>$countfile)$next_arrays=$countfile;
  for ($i=($first); $i <= $next_arrays; $i++) {
  eregi("<title>(.*)</title>",$items[$i+1], $title );
  eregi("<link>(.*)</link>",$items[$i+1], $url );
  eregi("<description>(.*)</description>",$items[$i+1], $description);

  #$title[1] = str_replace("'", "", $title[1]);
  $title[1] = str_replace("& ", "&", $title[1]);
  echo $title[1].'
';

  }
}
if ($npage <= $npages and $npage>1) $gline_rew = '[url="'.$_SERVER["]Prev[/url] ';
if ($npages > 1 and $npage<$npages) $gline_next = ' [url="'.$_SERVER["]Next[/url]';
echo "
Page {$npage} of {$npages}
".$gline_rew.$gline_next."
";

Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

BEST MOBILE ADVERTISER

External image (may be gone)

Guest #3

Cheers mate.

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close