Forum Moderators: coopster
This is the script part that i *think* looks for my url on their page:
function check_link($str)
{
$lookup = <<<ERT
<a href="http://www.mydomain.com/">
ERT;
if (strpos(@implode("\r",@file($str)),$lookup)){
return 1;
} else {
return 0;
}
}
------------------
If the link they use is e.g [mydomain.com...]
the script wont find it. Does anyone know how i can make it accept a url aslong is it contains my domain in part of it?
Many thanks if you can help..
function check_link($str)
{
$lookup = <<<ERT
<a href="http://www.mydomain.com/
ERT;
if (strpos(@implode("\r",@file($str)),$lookup)){
return 1;
} else {
return 0;
}
}
What I did was to remove the "> from the end of your URL. This will make it match
http://www.mydomain.com/keyword/as you desire. However, what it won't do is to find your link if the other site uses any other form of anchor. For example, if the link is written as
<a class="some_class_name" href="http://www.mydomain.com/">this script won't find the link. (and wouldn't before either)