'_hover'); $logo_title_custom='popular searches'; include('_ft_static_.php'); echo $ft_header; echo block_start('Popular Searches'); $queries = array(); get_list("http://buzzlog.buzz.yahoo.com/feeds/buzzoverl.xml", $queries); get_list("http://buzzlog.buzz.yahoo.com/feeds/buzzoverm.xml", $queries); //echo preg_replace('`\A(\d*\.)`', '', '55. You St 55. ink'); /* 1. Mount Wilson Observatory http://search.yahoo.com/search?p=mount+wilson+observatory&cs=bz 12826.83% */ function get_list($url, &$arr) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $raw = curl_exec($ch); $info = curl_getinfo($ch); curl_close($ch); if ($output !== false && $info['http_code'] == 200) { $xml = new SimpleXMLElement($raw); if (isset($xml->channel->item)) { foreach ($xml->channel->item as $item) { $arr[sha1($item->title)] = trim(preg_replace('`\A(\d*\.)`', '', strval($item->title))); } } } } ?>
  • = $per_col) { $i = 0; echo '
    '; } } ?>