Hello,
I'm trying to make a PHP crawler, I'm trying to make it crawl a webpage then gather all images and links and store them in MySQL then move on to another link.
This is how far I have got:
Maybe someone could help me add in the image crawl part and storing it.Code:<? $site = $_GET[url]; $f = fopen("$site","r"); $inputStream = fread($f,65535); fclose($f); if (preg_match_all("/<a.*? href=\"(.*?)\".*?>(.*?)<\/a>/i",$inputStream,$matches)) { $something = strip_tags($matches); print_r($matches); } ?>
Thank You




Reply With Quote