Code:
<?php
if (isset($_POST['comment'])){
$end="";
$com=$_POST['comment'];
$arr=explode(' ',$com);
foreach ($arr as $com)
{
$rnd=rand(1,4);
if ($rnd==2){$com=str_replace("e","é",$com);}
if ($rnd==3){$com=str_replace("e","ê",$com);}
if ($rnd==4){$com=str_replace("e","è",$com);}
$rnd=rand(1,4);
if ($rnd==2){$com=str_replace("a","á",$com);}
if ($rnd==3){$com=str_replace("a","â",$com);}
if ($rnd==4){$com=str_replace("a","à",$com);}
$rnd=rand(1,4);
if ($rnd==2){$com=str_replace("i","í",$com);}
if ($rnd==3){$com=str_replace("i","ì",$com);}
if ($rnd==4){$com=str_replace("i","î",$com);}
$rnd=rand(1,4);
if ($rnd==2){$com=str_replace("o","ó",$com);}
if ($rnd==3){$com=str_replace("o","ò",$com);}
if ($rnd==4){$com=str_replace("o","ô",$com);}
$rnd=rand(1,4);
if ($rnd==2){$com=str_replace("u","ú",$com);}
if ($rnd==3){$com=str_replace("u","ù",$com);}
if ($rnd==4){$com=str_replace("u","û",$com);}
$end=$end." ".$com;
}
?>
<form method="POST" action="unique.php">
<textarea cols="40" rows="5" name="comment"><?php echo substr($end,1);?></textarea>
<input type="submit">
</form>
<?php
}
else
{
?>
<form method="POST" action="unique.php">
<textarea cols="40" rows="5" name="comment"></textarea>
<input type="submit">
</form>
<?php
}
?>
Save this as unique.php and see what it does.
now you just need a macro to automate it (which i can supply just aswell)
Bookmarks