
20.11.2009, 23:09
|
|
Познающий
Регистрация: 29.11.2004
Сообщений: 80
Провел на форуме: 479552
Репутация:
6
|
|
Помогите нубу! Непонемаю почему!
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, $fl, PREG_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 это выгледит так <a href="userdetails.php?id= 316982">
|
|
|