Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kitek
Created November 23, 2011 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kitek/1388299 to your computer and use it in GitHub Desktop.
Save kitek/1388299 to your computer and use it in GitHub Desktop.
Generator losowych adresów email
<?
$emails = array();
function getRandomEmail() {
global $emails;
if (empty($emails)) {
$f = file_get_contents('http://ktmatu.com/cgi-bin/rea.pl');
preg_match_all('/\=\"mailto\:(.*)\"/', $f, $matches);
$emails = $matches[1];
}
return array_shift($emails);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment