Page 1 of 1

Snoopy & Search Engines in PHP

Posted: Sat Feb 14, 2004 9:24 am
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

Posted: Sat Feb 14, 2004 5:03 pm
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).