I believe this is a pretty simple function for those who know their regex.
I'm willing to pay $30 to whoever can make me this.. Payment via paypal or epassporte.
I'll try to describe it as good as I can.
function analyseUrl( $checkurl, $against)
string $url - a url to a website, a http site, on default port. Don't have to worry about https, ftp or other if it's on a weird port, or username passwords in the url.
string $agains - a url which we will search through $checkurl to find
array $keywords - All keywords that the $checkurl contains that link to $against
The function will grab all html at given $checkurl, preg match it or something to find all <a> tags where the href is $agains. I will have to work on <a> tags that have single or double quotes, as well as links that don't have quotes.
(match all theese: href=$agains, href='$agains', href="agains")
Then it will grab the keyword that are inside the links. (can skip if it's linking an image.) like this: <a href="$against">[keyword]</a>
then return an array with all collected keywords.
This would return the following:
<h1> This is a test page</a>
<a href="http://www.google.com">Google</a> is a great <a href=http://google.com/>search engine</a> for finding all kinds of useful <a href="http://www.yahoo.com">code</a>. Other than that, <a href='http://www.google.com'>google</a> is crap
I can be reached on icq: 209292096 or email nextri at gmail dot com
 => "Google"
 => "search engine"
 => "google"