How to extract emails using this..

Discussion in 'PHP' started by adamjblakey, Jan 7, 2008.

  1. #1
    adamjblakey, Jan 7, 2008 IP
  2. blacknet

    blacknet Active Member

    Messages:
    709
    Likes Received:
    16
    Best Answers:
    2
    Trophy Points:
    70
    #2
    for($i=1;$i<$max_val;$i++) {
    $content = file_get_contents('http://www.website.com/slist.php?item='.$i);
    preg_match_all($email_match_regex, $content, $matches);
    if(count($matches[0])) {
    foreach($matches[1] as $index => $value) {
    $insert_id = mysql_query('INSERT INTO.....');
    }
    }
    }

    don't seem too hard... (remember to set mac_memory + timeouts, and hope you don't get bot blocked)
     
    blacknet, Jan 7, 2008 IP
    tarponkeith likes this.