Hello, i am new here 🙂 and i have - maybe simple - question. How to put new line to txt file (file_put_contents - FILE_APPEND) above the text. My script puts new line under the contents and that's not good for me.
Thank you

    well that's what append does, you need to read the whole file in to a string, add the new line(s) then write the whole string to a file

      Write a Reply...