I don't have a clue why this doesn't work:
$bestand_file = file($config[bestand]);
$bestand_file[$id]= "";
$file_open = fopen($config[bestand], "w");
fwrite($file_open, "$email \n");
foreach($bestand_file as $regel)
{
fwrite($file_open,$regel);
}
fclose($file_open);
it's supposed to unsubscribe the person with $id, but for some reason it just doesn't work. $config[bestand] is certainly set correctly.
Thanks a lot