www.webdeveloper.com
Results 1 to 2 of 2

Thread: How to not overwrite an fwrite function?

  1. #1
    Join Date
    Sep 2013
    Posts
    12

    How to not overwrite an fwrite function?

    I have an fwrite function to a .txt file. And every time it is called it overwrites the previous file_contents how can I stop this?
    PHP Code:
    $f fopen("textfile.txt""w");
    fwrite($f$file_contents); 

  2. #2
    Join Date
    Sep 2013
    Posts
    12
    change w to a+

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles