A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

[Request] Email variation creator

903 views · started by Maverick ·
#2
<?php
$t = explode("@", (isset($_GET['email']) ? $_GET['email'] : "agsfsgfakgfksgfaksgfkdafsdk@gmail.com"));
for($i=1,$size=strlen($t[0]); $i<$size; $i++){
echo substr($t[0], 0, $i) . "." . substr($t[0], $i, strlen($t[0])) . "@{$t[1]}<br />\r\n";
}
?>[/1][/0][/0][/0][/0]


Enjoy.

http://sitename.com?email=xxxxxx@xxxxx.com


This code does simple one dimension splits, I'll try and do a multi-dimension split.
#3
There are an infinite number of variations, brah.

myemail@gmail.com
is also valid as:
my........................email@gmail.com

There can be an infinite number of periods in between any two characters (or an infinite number of periods between each character).

So there is no way to calculate this without outputting enough data to fill your entire hard drive.
#4
GAMEchief wrote:
There are an infinite number of variations, brah.

myemail@gmail.com
is also valid as:
my........................email@gmail.com

There can be an infinite number of periods in between any two characters (or an infinite number of periods between each character).

So there is no way to calculate this without outputting enough data to fill your entire hard drive.


Oh wow, I thought it was only 1 period between each 2 characters.

Lol