Hi, I have a website with about 1000 entries and i want to extract the email address's using a script. Basically all the email's are on a separate entry page http://www.website.com/slist.php?item=1 http://www.website.com/slist.php?item=2 http://www.website.com/slist.php?item=3 etc etc How would i extract all the emails from all these and enter them into a mysql table of mine? Cheers, Adam
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)