<?
$idx_pg="http://softtime.ru"; // -- Где ищем
$my_pg="forum/index.php"; // -- Что ищем
$cont = file_get_contents($idx_pg);
if (preg_match_all("'<a[[:space:]](.*)href=([[:punct:]]{0,1})".preg_quote($my_pg)."(\\2)(.*)>(.*)</a>'",$cont,$res)){
echo "На странице по адресу $idx_pg есть следующие ссылки на $my_pg:<br>";
for ($i=0; $i<count($res[0]); $i++) {
echo $res[0][$i]."<br>";
}
}
?>