Advertisement
illpastethat

vtrelay stats php

Sep 27th, 2013
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.73 KB | None | 0 0
  1. <?php
  2.         $file = file_get_contents("http://main.acsevents.org/site/TR/RelayForLife/RFLCY14SA?pg=entry&fr_id=60186");
  3.         preg_match('/<p><a href="TR\?fr_id=60186\&amp;pg=teamlist">([0-9]{1,}) teams<\/a> and <a href="TR\?fr_id=60186\&amp;pg=topparticipantlist">([0-9]{1,}) participants<\/a> have raised <span id="tr-greeting-fundraisingStats">(.*)<\/span><\/p>/im', $file, $matches);
  4.         echo '<a href="http://main.acsevents.org/site/TR?fr_id=60186&amp;pg=teamlist" style="color:#e14e06" target="_blank">'.$matches[1].
  5.         ' teams</a> and <a href="http://main.acsevents.org/site/TR?fr_id=60186&amp;pg=topparticipantlist" style="color:#e14e06" target="_blank">'.$matches[2].
  6.         ' participants</a> have raised <strong>'.$matches[3].'</strong>';
  7.         ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement