Originariamente inviato da cristal83
Cris -__-'
o_O

function cancella(){
$memoria = file("newsletter_email.txt");

$mail = array($_POST['email']);
$memoria = array_diff($memoria, $mail);

sort($memoria);
reset($memoria);

$fp = fopen("newsletter_email.txt", "w");
fwrite($fp, implode('', $memoria));
ftruncate($fp, ftell($fp));
fclose($fp);
}