Snoopy & Search Engines in PHP

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
chvol
Forum Newbie
Posts: 20
Joined: Fri Apr 26, 2002 2:49 pm

Snoopy & Search Engines in PHP

Post by chvol »

1. If all I want is the HTML from a given URL, e.g. http://www.google.com, what is the advantage of using class Snoopy vs. simply $html=join(“”,file(”http://www.google.com”)); ?

2. How can I write a search engine in PHP, other than by calling another search engine? I can walk through the links, of course, but how do I find all the starting point URLs?

Charlie
chvol@aol.com
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post by DuFF »

2. How can I write a search engine in PHP, other than by calling another search engine? I can walk through the links, of course, but how do I find all the starting point URLs?
You should probably take a read about how search engines work. I would not recommend trying to make a search engine for the entire internet, instead just make one for your site (easiest if you are using a database for the backend).
Post Reply