[prisna-google-website-translator]$feeds = array( 'http://feeds.eonline.com/eonline/ca/topstories', //'http://rss.cnn.com/rss/edition_entertainment.rss', 'http://feeds.reuters.com/reuters/entertainment', 'http://feeds2.feedburner.com/time/entertainment', 'http://feeds.bbci.co.uk/news/entertainment_and_arts/rss.xml' ); $items = array(); foreach ($feeds as $feed) { $xml = simplexml_load_file($feed); foreach ($xml->channel->item as $item) { $pubDate = strtotime($item->pubDate); // convert pubDate to a Unix timestamp $items[$pubDate] = $item; // add the item to the $items array with the pubDate as the key } } krsort($items); // sort the $items array in reverse chronological order $num=0; date_default_timezone_set('Pacific/Auckland'); foreach ($items as $item) { echo "
" . $item->title . "
"; //echo "" . $item->pubDate . "
"; echo "" . $item->description . "
"; if ($enclosure = $item->enclosure) { $url = (string) $enclosure["url"]; $type = (string) $enclosure["type"]; $length = (string) $enclosure["length"]; } echo "Read more"; $num=$num+1; // echo $num; if ($num=="5") { echo "
"; //include('AdSense320x100.asp'); } if ($num=="10") { echo "
"; //include('AdSense320x100.asp'); } if ($num=="17") { echo "
"; include('AdSense300x250.asp'); } if ($num=="25") { echo "
"; //include('AdSense320x100.asp'); } if ($num=="34") { echo "
"; //include('AdSense320x100.asp'); } } ?>

👉 [点击此处查看全部最新文章]
请小编喝咖啡☕️ ------------------------------------
