Jump to content

file_append mode doesn't work for me...


pzieye
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...