Hi. I want to create a list of urls in my website, rather like a Yahoo urllist.txt file. I have got thus far:
$html = file_get_contents($url);
$doc = new DOMDocument();
$doc->loadHTML($html);
$xpath = new DOMXpath($doc);
$nodes = $doc->getElementsByTagName('a');
which has found 29 nodes - but how do I now get the href part? Or am I going about this completely the wrong way?!
Thanks guys