Anyone know a way to make script, that will load a big TXT file and count how many times some word appears in it? Example, I wish to count how many “Name:” words are there in in this file I loaded..
[code=php]<?PHP $str = "This is a test string which will contain test characters. Let's run a test, and then be done."; preg_match_all("/btestb/", $str, $num); $num = count($num[0]); echo $num ?>[/code]