<?

$page = 0;
$URL = "http://www.beginnersphp.co.uk/";
$page = @fopen($URL, "r");
print("Links at $URL<BR>
");
print("<UL>
");
while(!feof($page)) {
$line = fgets($page, 255);
while(eregi("HREF="[^"]*"", $line, $match)) {
print("<LI>");
print($match[0]);
print("<BR>
");
$replace = ereg_replace("?", "?", $match[0]);
$line = ereg_replace($replace, "", $line);
}
}
print("</UL>
");
fclose($page);

?>

kaynak: ordan burdan

Tags: , , , ,
Php - Sayfadaki Linkleri Bulmak (scripti, nasıl, nedir?) konusu
Benzer yazılar:
    Benzer yazı yok