This post will demostrate how you can find all links on a website using php code.
$xpath = new DOMXPath($dom);
$hrefs = $xpath->evaluate("/html/body//a");
for ($i = 0; $i < $hrefs->length; $i++) {
$href = $hrefs->item($i);
$url = $href->getAttribute(‘href’);
echo $url.’
‘;
}?>
Pretty! This was an extremely wonderful post. Thanks for supplying this information.