| px | top | add code | search | signup | login | help |
<?php$domains = array (\".com\",\".net\",\".us\",\".edu\",\".nl\",\".de\",\".it\",\".se\",\".ch\",
\".uk\",\".ca\",\".hr\",\".ae\",\".br\",\".jp\",\".be\",\".us\",\".au\",\".ie\",
\".ar\",\".fi\",\".mil\",\".gov\",\".sg\",\".es\",\".mx\",\".no\",\".pt\",
\".dk\",\".il\",\".ru\",\".nz\",\".th\",\".pl\",\".id\",\".cy\",\".in\",\".kw\",
\".at\",\".za\",\".cn\",\".fr\",\".is\",\".ro\",\".kr\",\".gr\",\".co\",\".ph\",
\".bo\",\".hu\",\".cr\",\".pe\",\".cl\",\".tr\",\".arpa\",\".tw\",\".eg\",
\".ee\",\".ge\",\".ua\",\".om\",\".ec\",\".hk\",\".ve\",\".ag\",\".cz\",\".ni\",
\".to\",\".nu\",\".sm\",\".ni\",\".lt\",\".yu\",\".bg\",\".ba\",\".do\",\".qa\",
\".ck\",\".mt\",\".bf\",\".lu\",\".su\",\".bh\");
$syllables = array ( \"er\",\"in\",\"tia\",\"wol\",\"fe\",\"pre\",\"vet\",\"jo\",\"nes\",\"al\",
\"len\",\"son\",\"cha\",\"ir\",\"ler\",\"bo\",\"ok\",\"tio\",\"nar\",
\"sim\",\"ple\",\"bla\",\"ten\",\"toe\",\"cho\",\"co\",\"lat\",\"spe\",
\"ak\",\"er\",\"po\",\"co\",\"lor\",\"pen\",\"cil\",\"li\",\"ght\",\"wh\",
\"at\",\"the\",\"he\",\"ck\",\"is\",\"mam\",\"bo\",\"no\",\"fi\",\"ve\",
\"any\",\"way\",\"pol\",\"iti\",\"cs\",\"ra\",\"dio\",\"sou\",\"rce\",
\"sea\",\"rch\",\"pa\",\"per\",\"com\",\"bo\",\"sp\",\"eak\",\"st\",\"fi\",
\"rst\",\"gr\",\"oup\",\"boy\",\"ea\",\"gle\",\"tr\",\"ail\",\"bi\",
\"ble\",\"brb\",\"pri\",\"dee\",\"kay\",\"en\",\"be\",\"se\");
function random_text() {
global $syllables;
srand( (double)microtime() * 1000000 );
for ( $count = 1; $count <= rand(1,10); $count++ ) {
$text .= sprintf(\"%s\", $syllables[ rand() % 62] );
}
return $text;
}
function fake_email($number){
global $domains;
echo \"<html>\\n\\t<head>\\n\\t\\t<title>Untitled</title>\\n\\t</head>\\n<body>\\n\";
echo \"Sorry if you\'re not an e-mail spider.<br>\\n\";
for ( $n = 0; $n < $number; $n++ ) {
$fake = random_text().\"@\".random_text().$domains[ rand( 0, count($domains) ) ];
echo \"\\t<a href=\\\"mailto:$fake\\\">$fake</a><br>\\n\";
}
echo \"</body>\\n</html>\";
}
?>
Comments or questions?
PX is running PHP 5.2.11
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.