Check if a list of webpages contains given word

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jarman
Forum Newbie
Posts: 1
Joined: Sun Apr 20, 2008 12:08 am

Check if a list of webpages contains given word

Post by jarman »

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?
Post Reply