Hi,
Try this:
$url = "http://www.test.com/";
$a = strip_tags(join('',file($url)));
$a = eregi_replace(".|,|\?|!", "", $a);
$a = eregi_replace(" {2,99}", " ", $a);
$trans = array_flip(get_html_translation_table(HTML_ENTITIES));
$a = strtr ($a, $trans);
$b = explode(" ", $a);
$num_words = count($b); //The number of words in $url
$words = array_count_values($b);
reset($words);
arsort($words); //$words is an array that has all the words in the document ordered by how often they occur
print_r($words);
firemouse2001