{% else-1 %}
Получаем все ссылки с сайта

                        
<?php
$file = file_get_contents('http://sait.ru');
$file = preg_match_all('|href="(.?*)"|si',$file,$res);
foreach ($res['1'] as $url)
echo $url . '<br />';
?>
0 33 0
Без комментариев...