este es el codigo:
Código PHP:
$url = "http://www.web.com";
$web = file_get_contents($url);
$res = preg_match_all(
"/[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}/i",
$web,
$matches
);
if ($res) {
foreach(array_unique($matches[0]) as $email) {
echo $email . "<br />";
Warning: file_get_contents(http://) [function.file-get-contents]: failed to open stream: Redirection limit reached, aborting in
Muchas gracias, saludos