channel->title; $link = $xml->channel->link; # Get bookmarked pages $links = array(); $item = $xml->item; foreach ($item as $i) { $links[] = array( 'title' => (string)$i->title, 'link' => (string)$i->link ); } if ($reverse) { array_reverse($links); } # If this is the cronjob, just hit each URL to prime Snap's cache if (isset($GLOBALS['argv'])) { $ch = curl_init(); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); foreach ($links as $link) { curl_setopt($ch, CURLOPT_URL, $link['link']); curl_exec($ch); } curl_close($ch); } # If this is the page, show a