6 *This thing checks URLs from STDIN and printing found E-Mails to STDOUT.
10 $in = fopen('php://stdin', 'r');
12 $url = trim(fgets($in)); //echo($url); //Debug
15 foreach($page as $line) {
16 if(!eregi('(mailto:|@)', $line)) continue;
17 $line = spliti('mailto:', $line);
19 foreach($line as $mail) {
20 $mail = spliti('(<|>| |\?|")', htmlspecialchars_decode($mail));
21 echo(trim($mail[0])."\n");
This page took 1.040665 seconds and 4 git commands to generate.