Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi i've been working on this backlink script and last night finally got it working fast too!
then all of the sudden this script get stuck in a loop and does nothing???
also the remote variable isn't even found??? is there a setting in the php.ini that i haved
to adjust to make this script work please help a.s.a.p.????
LOSTCode: Select all
<html>
<head>
</head>
<body>
<a href="http://yoururl.com">Yoururl.com</a><br/>
</body>
</html>
<?php
// $requestedurl = parse_url($_SERVER['HTTP_REFERER']);
// $remote = $requestedurl['host'];
// $remote = str_replace('www.', '', $remote);
$link = 'http://yoururl.com';
$remote = 'http://yoururl.com/test.html';
// $siteurl = "http://auctions.shopping.yahoo.com/"; // this is the webpage the backlink should be found on
// $recip = "http://www.yahoo.com/"; // this is the reciprocal url, text, image, ... that EXACTLY must match
if (backlinkCheck($remote, $link)) {
echo "Backlink was FOUND on: ".$remote;
} else {
echo "Backlink was NOT FOUND on: ".$remote;
}
function backlinkCheck($remote, $link) {
$arrText = file($remote);
for ($i=0; $i<count($arrText); $i++) {
$text = $text . $arrText[$i];
}
if (eregi($link, $text)) {
return true; // set true if there is a backlink
} else {
return false; // set false if backlink is missing
}
}
?>feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]