View Single Post
Old 08-04-2004, 11:15 AM   #1
demo
Green Mole
 
Join Date: Aug 2004
Posts: 1
Making Search Spider Follow Links?

I was wondering how you make search spiders keep on following links. My spider is in php. Here is what I have so far:


Quote:
function search() {
global $url;
$site = $url;
$data = file_get_contents($site);
if (preg_match_all("/http:\/\/[^\"\s']+/", $data, $links) {
for ($i=0;$i<count($links[0]);$i++) {
echo "<font size=\"2\" face=\"verdana\">".$links[0][$i]."</font><br>";
}
}
}
demo is offline   Reply With Quote