Get exclusive CAP network offers from top brands

View CAP Offers

Reply To: Parsing brightshare XML?

[bsa_pro_ad_space id=2]
#735821
prettie
Member

[PHP]
if (function_exists(‘file_get_contents’) && ini_get(‘allow_url_fopen’)) {
$xml = @ file_get_contents(‘http://www.brightshare.com/top_payouts/AllSlotsTopPayouts.xml’);
if ($xml !== false) {
$c = preg_match_all(‘|.*?(.+?).*?(.+?).*?(.+?).*?(.+?).*?(.+?).*?(.+?).+?|sm’,$xml,$items,PREG_SET_ORDER);
foreach ($items as $item) {

/*
* Now use array as you wish
* $item[1] – Name
* …
* $item[6] – Country
*/

}
}
}
[/PHP]