PHP File Handling: Writing to Files
In our last tutorial, we discussed on how access file using PHP. At this time, we’re going to focus on how write into a file. Since we know how to access files, writing into a file is really simple. To start on lesson lets create a new PHP file called “writefile.php”.