(.*?)<\/link>/",$xml,$matches);
$utube_videos = array();
foreach($matches[1] as $match){
$utube_videos[] = str_replace("http://youtube.com/?v=","",$match);
}
$randomVid = $utube_videos[array_rand($utube_videos)];
if($randomVid){
$objectHTML = "";
} else { $objectHTML = "Error; Video Not Available"; }
return $objectHTML;
}
function gBlog($count=20){
global $keyword;
$url = "http://blogsearch.google.com/blogsearch_feeds?hl=en&output=rss&q=" . urlencode($keyword) . "&ie=utf-8&num=$count";
$xml = get($url);
preg_match_all("@
";
}
return $toprint;
}
function msn($count=5){
global $keyword;
$url = "http://search.msn.com/results.aspx?q=" .urlencode($keyword)."&format=rss&FORM=RSNR";
$xml = @get($url);
preg_match_all("/ " . $paragraphs[array_rand($paragraphs)] . " " . $paragraphs[array_rand($paragraphs)] . " " . $paragraphs[array_rand($paragraphs)] . "";
for($i=0;$i<$count;$i++){
$toprint .= "
";
return $toprint;
}
function goarticles($paragraphsCount = 4){
global $keyword;
$url = "http://www.goarticles.com/cgi-bin/rss-search.cgi?term=" . urlencode($keyword) . "&&l=20&s=1&c=none&D1=subject";
$xml = @get($url);
preg_match_all("/