What would be involved with runnning a script on a php page, say nightly (either on mysql contents or linked .txt document) that would search for a list of keyphrases for possible matches, and identify with a place marker? This all would occur within the same site.

Could a range of numbers be applied that would prioritize the page(s) having matches?