Hi, I'm relatively new with php but I have a question about this 'new' function. If I use file_put_contents("file.txt", "whatever") then it, of course, writes "whatever" in the "file.txt". If I later do the same thing but put a different word (say "other") from "whatever" then it overwrites that entry in the file. This is still fine (and expected), however, if I use this file_put_contents("file.txt", "whatever", FILE_APPEND) then it appends like expected BUT there are two entries. For example, the file would look like this: whateverwhateverotherother. Am I missing something here? I want it to append but I don't want the double entries. There is a Resource Context but I don't know what that's for (or what is a valid entry for it). Thank you for any assistance you can offer in clearing up this confusion and I look forward to hearing from you in the near future.
Corey