
27.10.2009, 16:38
|
|
Постоянный
Регистрация: 08.11.2008
Сообщений: 498
С нами:
9213376
Репутация:
278
|
|
PHP код:
$n_one = @file_get_contents('веб путь к файлу #1');
$n_two = @file_get_contents('веб путь к файлу #2');
$n_one = explode("\r\n", $n_one);
$n_two = explode("\r\n", $n_two);
$out = '';
for($i=0; $i <= count($n_one); $i++){
for($y=0; $y <= count($n_two); $y++){
if(trim($n_one[$i]) == trim($n_two[$y])){ continie; }else{
$out .= $n_two[$y].'\r\n';
}
}
echo 'done.\r\nresult:\r\n';
echo $out;
вроде так
Последний раз редактировалось Deathdreams; 27.10.2009 в 16:50..
|
|
|