when i use fwrite() to a txt-file, the script writes at the end of the file. is it possible to make it write in the beginning of the file? thx
yes it's possible. It's all dependant on what arguments you pass to fopen, them manual page can be found <A HREF=http://php.net/manual/en/function.fopen.php>here</A> take a look at the "mode" option