I don't understand what you're trying to say. Writing data over a file keeping the old data? That's not writing over it.
Do you mean add data to the start of the file?
PHP Code:$file = fopen("genchat.php", "r+");
$data = "what you want to be added to the start of the file";
fwrite($file, $data);
fclose($file);







Reply With Quote

