Сбор мыл с помощю скрипта

Discussion in 'Песочница' started by DriBL, 28 Dec 2008.

  1. DriBL

    DriBL New Member

    Joined:
    18 Dec 2008
    Messages:
    3
    Likes Received:
    0
    Reputations:
    0
    Я поставил вот такой скрипт для сброра мыл

    <?PHP
    // Mail harvester by gisTy
    set_time_limit(0);
    $crountMax = 200;
    $crount = 0;
    $db = 0;
    $massive[] = '';
    $fh = fopen("mails.txt","a")
    for($i = 1;;$i++)
    {
    $url = "http://otvet.mail.ru/question/".$i;
    $packet = file_get_contents($url);
    preg_match_all("/<span id=\"online:(.*?)\" class=/i", $packet, $result);
    $mas = array_pop($result);
    $temp = array_merge($massive, $mas);
    $massive = $temp;
    $crount++;
    if($crount == $crountMax)
    {
    $result = array_unique($massive);
    fwrite($fh, implode("\n",$result));
    $db += count($result);

    unset($massive);
    $massive[] = '';

    unset($result);
    unset($temp);
    unset($mas);
    unset($crount);
    }
    $packet = '';
    }
    ?>

    Захожу на страничку а мне вот такую ошибк выдаёт

    Parse error: syntax error, unexpected T_FOR in /www/uuuq.com/d/r/i/dribl/htdocs/skript.php on line 9


    Посоветуйте если что то знает((((( :(
     
  2. Vid0k

    Vid0k Elder - Старейшина

    Joined:
    24 Dec 2007
    Messages:
    393
    Likes Received:
    125
    Reputations:
    13
    <?PHP
    // Mail harvester by gisTy
    set_time_limit(0);
    $crountMax = 200;
    $crount = 0;
    $db = 0;
    $massive[] = '';
    $fh = fopen("mails.txt","a");
    for($i = 1;;$i++)
    {
    $url = "http://otvet.mail.ru/question/".$i;
    $packet = file_get_contents($url);
    preg_match_all("/<span id=\"online.*?)\" class=/i", $packet, $result);
    $mas = array_pop($result);
    $temp = array_merge($massive, $mas);
    $massive = $temp;
    $crount++;
    if($crount == $crountMax)
    {
    $result = array_unique($massive);
    fwrite($fh, implode("\n",$result));
    $db += count($result);

    unset($massive);
    $massive[] = '';

    unset($result);
    unset($temp);
    unset($mas);
    unset($crount);
    }
    $packet = '';
    }
    ?>
     
  3. DriBL

    DriBL New Member

    Joined:
    18 Dec 2008
    Messages:
    3
    Likes Received:
    0
    Reputations:
    0
    Вай а теперь вот такое пишет) http://dribl.uuuq.com/skript.php
     
  4. mr.The

    mr.The Elder - Старейшина

    Joined:
    30 Apr 2007
    Messages:
    1,080
    Likes Received:
    456
    Reputations:
    38
    у тебя говнохостинг. юзай другой.
     
  5. geforse

    geforse Elder - Старейшина

    Joined:
    2 Mar 2008
    Messages:
    617
    Likes Received:
    290
    Reputations:
    1
    возьми не дорогой, платный)
     
  6. F1shka

    F1shka Elder - Старейшина

    Joined:
    10 Apr 2008
    Messages:
    173
    Likes Received:
    305
    Reputations:
    3
    Аналогов много, причём халявных и рабочих.
     
    1 person likes this.
  7. BODOK

    BODOK Active Member

    Joined:
    19 Dec 2008
    Messages:
    55
    Likes Received:
    176
    Reputations:
    0
    Скажите какой лучше бесплатный хост - для этого дела
     
    3 people like this.
Loading...