<?php
$test = "AdamsKevin35";
function stringrpl($vitrichen,$kituchen,$str)
{
$out = "";
$temp = substr($str,$vitrichen);
$out = substr_replace($str,"$kituchen",$vitrichen);
$out .= $temp;
return $out;
}
function chen($text, $char, $vitri)
{
$text1 = "";
$text1 = stringrpl($vitri,".",$text);
return $text1;
}
$tong = strlen ($test);
$stt = 1;
$file = fopen("C:\Program Files (x86)\VertrigoServ\www\chuoi\gmail_mul.txt",'w');
for ($i = 1; $i < $tong; $i++)
{
$test1 = chen($test, ".", $i);
//echo $test1."</br>";
$string = $test1."@gmail.com";
fwrite($file,$string);
fwrite($file, "\r\n");
//fclose($file);
//exit;
}
for ($i = 1; $i < $tong - 1; $i++)
{
$test1 = chen($test, ".", $i);
//echo $test1."</br>";
for($b = $i + 2; $b <= $tong; $b++ )
{
$test2 = chen($test1, ".", $b);
//echo $stt++."/";
//echo $test2."@gmail.com</br>";
$string = $test2."@gmail.com";
fwrite($file,$string);
fwrite($file, "\r\n");
}
}
fclose($file);
echo "successful!"
?>