April 30, 2007

To chek your link on other site

Check Reciprocal linking:

function
check_backlink($remote_url, $link) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $remote_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 9);
$data = curl_exec($ch);

if (
curl_errno($ch)) {
return
'URL not working';
} else {
if (
eregi($link, $data)) return 'Found'; else return 'Not Found';
}
curl_close($ch);
}