Created
November 23, 2011 09:49
-
-
Save kitek/1388299 to your computer and use it in GitHub Desktop.
Generator losowych adresów email
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$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