We need a simple php scraping function that returns an array as follows:
function getLeaderboards ( $p_source ) {
if ($p_source == "ultimatebet") {
$url = "[login to view URL];;
}
//scraping code goes here
//array is populated here based on the above scraping code
return $array ;
}
We will call the function as follows for testing purposes:
//ultimatebet call
$myresults=getLeaderboards("ultimatebet");
echo '<table><tr><td>Rank</td><td>Player ID</td><td>Chips</td></tr>';
foreach ($myresults as $item) {
echo '<tr><td>'.$item["rank"].'</td><td>'.$item["playername"].'</td><td>'.$item["score"].'</td></tr>';
}
echo '</table>';
Please look at the [login to view URL] page (under MONTHLY) carefully and note that Place corresponds to $item["rank"], Username corresponds to $item["playername"] and Points Earned corresponds to $item["score"]. We need to scrape all 100 positions on the page.
We're running php4.
Hi, please read PM.
I won't get involved with gambling projects but since you only need a function to retrieve the leader board then I can help you to provide the script.
I am a web programmer in Hong Kong. I have a lot of experiences in PHP, and I can handle the project well. Please refer to bizlogicgroup dot com for my previous work. Thank you!