View Single Post

  #2 (permalink)  
Old 11-03-2004
neur0maniak
 
Posts: n/a
Default Re: reciprocal link checker script

I haven't tested the code, but I would assume it would be something like:


if (strpos(file_get_contents("http://other.site/"),
"http://my.link")!==false) {
// I'm linked
}else{
// I'm not linked
}

Though, you'd probably want to expand on that to check to see if it's
inside an <A HREF="">, etc. It's not ideal, because the other site could
have it linked in a text colour the same as the background colour in the
smallest font at the bottom of the page and it would still return as
linked...




work4u wrote:
> Hello Everyone,
> I am coding the reciprocal link exchange form which there is function
> to check if my site info and link already been add on the partner site
> page or not.
>
> Please anyone who works on similar function gives me a hint how it
> works or any sample code would be a great appreciation.
>
> Thanks in advance.
>
> webon

Reply With Quote