Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

reciprocal link checker

3 views
Skip to first unread message

work4u

unread,
Nov 2, 2004, 10:12:54 PM11/2/04
to
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

Paul Barfoot

unread,
Nov 3, 2004, 7:34:29 PM11/3/04
to
Hi

$filename = "http://theirdomain.com/linkpage.html";
$fd = fopen ($filename, "r");
$contents = fread ($fd, 10240); /* 10k used as a filesize - change if
necessary */
fclose ($fd);
$your_url = "http://yourdomain.com/index.html";
if (!stristr ($contents, $your_url)) { /* case-insensitive search four your
url */
echo "URL Not Found!";
} else {
echo "URL Found!";
}

This should work as long as their links page is straight html - if it is a
php script then the link won't be found (unless the link is hard-coded into
the script)!

--
Paul Barfoot

"work4u" <ros...@yahoo.com> wrote in message
news:9c872fe0.04110...@posting.google.com...

ken...@gmail.com

unread,
Oct 3, 2012, 8:05:22 PM10/3/12
to
If you're having problems you are welcome to use my free link exchange checker:
http://linkexchangechecker.com/
0 new messages