Get exclusive CAP network offers from top brands

View CAP Offers

Parsing brightshare XML?

[bsa_pro_ad_space id=2]
  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #735810
    Anonymous
    Inactive

    Have you looked into Magpie: http://magpierss.sourceforge.net/ – its very good at this sort of stuff.

    #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]

Viewing 2 posts - 1 through 2 (of 2 total)