Thanks for the code and offer, I have actually come up with the code below which works OK although i get some dodgy results at some sites like www.skint.co.uk compared to clean results at sites like :- www.jagprops.co.uk. Thanks again and any more advice is thoroughly welcome.
<?php
//get page contents
$page = file_get_contents(" http://www.skint.co.uk");
//find urls in $page, matches are put in $matches
preg_match_all ("/href=[\"']?([^\"' >]+)/", $page, $matches);
$count = count($matches[0]);
for ( $counter = 0; $counter <= $count; $counter++){
$link = $matches[0][$counter];
$link = preg_replace( "/href=[\"']/","", $link);
$link = preg_replace( "/href=/","", $link);
echo "$link<br/>";
}
?>
|