
07.04.2008, 21:32
|
|
Banned
Регистрация: 11.08.2006
Сообщений: 1,522
Провел на форуме: 5128756
Репутация:
2032
|
|
PHP код:
<?
$cont = file_get_contents('1.txt');
preg_match_all('#href="([^"]*)"#', $cont, $res);
$f = fopen('res.txt','a');
for($i = 0; $i < count($res[1]); $i++){
fputs($f, $res[1][$i]."\n");
}
fclose($f);
?>
|
|
|