Jump to content

file_append mode doesn't work for me...


pzieye

Recommended Posts

hey.sorry for the dumb question but I've only started studying PHP today.I need to write a string on a file and I'm using file_put_contents().problem is, I need what I write to be in the following line of the already existant strings.exampletest.txt:test1I'm using file_put_contents("test.txt","test2",FILE_APPEND); but it goes like this:test.txt:test1test2when I wanted like this:test.txt:test1test2How can I do it this way? Thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...