Site A, has a script, via $_GET they have the URL of Site B, and then Site A, displays all the links in Site B, in a list, "Related websites: <br>" It's basically a link grab, via php, any reference or ideas or pre-made scripts I can see to understand. Help would be really apprecited. I'll rate you well on DP!
Are you looking for function suggestions? Maybe file_get_contents() or fsockopen() or even perhaps curl.
Not sure if it worked, could you make a php code that simply gets all the link in another page? Site A has an input, I insert the URL of SITE B. Site A displays all the links in SITE B. Example: If SITE B has "Yahoo.com" "http://www.msn.com" "http://digitalpoint.net" in their archor tags, site A will display them in a list, as "related websites"
You can make a code that grabs all of the links, but it's going to take a little bit of work. Getting the html will be the easy part, then you have to search for and find http:// and go until the end of the quotes or have a couple extra catches in there, it's a bit of a pain.
You can try out this code sample at phpbuilder: http://phpbuilder.com/snippet/detail.php?type=snippet&id=552