Word Frequency List Generator

Filename:

str = $str; } } $form = $filename; //new PHP3; # Get the URL name $url = $filename; echo ""; #Add http:// to the url $url = "http://$url"; //|| "~ /^http:\/\///"); #Get the HTML code from the URL: $urlhtml = $filename; if ($urlhtml == undef) { print "

$url is not found.

"; print "

Please verify your entry.

"; // die "Narf!"; } print "

Word Frequency List for $url

\n"; #Removing HTML Tags here: // $urlhtml =~ s/<[^>]+>/ /g; // Splitting Words // @word($word); // = split /[^A-Za-z']+/, "\L$urlhtml\E"; //clears null values if ($word[0] == "") { // Don't do anything shift @words; } #store words in list //my ($count, %frequency, $word); parse_url($filename); //string $filename) //parse_url($word); //ksort($word); $count = 0; for(each; $word; $count) { $frequency = $word++; $count++; } print "\n"; print "\n"; #sort and display words with the number of their occurance #my ($key, $percent); for(each; $key; $frequency) { print "\n\n"; } print "
WordCountPercentage
$word\n$frequency\n"; $percent = ($frequency * $key)/$count*100; $PERCENT; write; print "\n
"; //print $form->end_html; # Format for percentage $PERCENT = @###.##% $percent; ?>

Process another URL