PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Coding & Tutorials (http://www.phpdig.net/forum/forumdisplay.php?f=31)
-   -   Making Search Spider Follow Links? (http://www.phpdig.net/forum/showthread.php?t=1156)

demo 08-04-2004 11:15 AM

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>";
}
}
}

Charter 08-08-2004 05:22 PM

Hi. Maybe just download PhpDig and have a look at the code?


All times are GMT -8. The time now is 03:07 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.