<?php
$file = 'people.txt';
// Open the file to get existing content
$current = file_get_contents($file);
// Append a new person to the file
$current .= "John Smith\n";
// Write the contents back to the file
file_put_contents($file, $current);
?>
erg vreemd maar het script blijft alles achter elkaar zetten in plaats van telkens een nieuwe regel.
Kan iemand me zeggen wat er niet klopt?