Check if a list of webpages contains given word
Posted: Sun Apr 20, 2008 12:10 am
I'm writing a script in which user writes a set of urls and the script checks if the webpages under given urls contain given word.
I first download the whole page content using file($url) funtion and then analyze it in search of given word using strpos. It's slow and if a user writes 50 pages it's very gvery slow.
Is there a way to speed it up?
I first download the whole page content using file($url) funtion and then analyze it in search of given word using strpos. It's slow and if a user writes 50 pages it's very gvery slow.
Is there a way to speed it up?