Re: Search engine

From: Date: Fri, 29 Sep 2006 08:26:52 +0000
Subject: Re: Search engine
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-42438@lists.php.net to get a copy of this message
Hi Ron This doesn't sound like a Db problem then. You could open each page and use a regex to search for the links. Something like: preg_match_all("/<a href=\"(.+)\">(.*)<\a>/", $page, $matches, PREG_PATTERN_ORDER); which would produce an array ($matches[1]) of the addresses and a array ($matches[2]) of corresponding link text, but only for a basic link, without additional attributes Niel

« previous php.db (#42438) next »