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

Непонемаю почему! Ненаходит ид юзэроф
  #8  
Старый 21.11.2009, 14:34
KrafT
Познающий
Регистрация: 29.11.2004
Сообщений: 80
Провел на форуме:
479552

Репутация: 6
Question Непонемаю почему! Ненаходит ид юзэроф

PHP код:
 $regexp2 '/userdetails.php?id="([0-9,a-z,A-Z,]+)"/';
    
$friends_pages $page+1;
    
$friends_ids = Array();
    echo 
"Loading friendlist...\r";
    for (
$f $page$f <= $friends_pages$f++) {


$q->Get("http://www.web.web/users.php?letter=a&page=$f");
 
         
file_put_contents($inc_dir.'/friends.html'$q->Result);
         
$content2 file_get_contents($inc_dir.'/friends.html'$q->Result);     
         
preg_match_all($regexp2$content2$flPREG_SET_ORDER);
          foreach (
$fl as $fll) {
            if (!
in_array($fll[1], $friends_ids))
                
$friends_ids[] = $fll[1];
        }
    }
    
$friends_count_real count($friends_ids);
    echo 
"Friendlist loaded. $friends_count_real IDs\n"
Непойму почему он неберет идшники с friends.html . В Friends.html eto vigledit tak <a href="userdetails.php?id=316982"> вот в концэ ид юзэра. Помогите пожалусто
 
Ответить с цитированием