Показать сообщение отдельно

  #2  
Старый 15.12.2007, 11:17
NOmeR1
Познавший АНТИЧАТ
Регистрация: 02.06.2006
Сообщений: 1,187
С нами: 10495046

Репутация: 2642


По умолчанию

PHP код:
<?
$site1 
= 'сайт #1';
$site2 = 'сайт #2';
$zapros1 = '875934875983775398475398759387458973';
$zapros2 = '4098029840203498023498230489029348';
if( 
substr_count(file_get_contents($site1), $zapros1) < 1 )
{
     
$handle = fopen('ya.ru.txt', 'w');
     
fwrite($handle, file_get_contents('http://ya.ru'));
     
fclose($handle);
}
if( 
substr_count(file_get_contents($site2), $zapros2) < 1 )
{
     
$handle = fopen('google.com.txt', 'w');
     
fwrite($handle, file_get_contents('http://google.com'));
     
fclose($handle);
}
?>
Так? Я лично не понял что собственно надо =)
 
Ответить с цитированием