https://dev.webpages.dk/ |
|
PHP How to Write to a File
How to Create a File: Here we create a file, and write to it in the same go. To the right you see the options you have for use witht the 'fopen'. This can be Read, Write, and Append. And at the beginning or the end of the file. Notice that using 'W' or 'W+' will let you create the file, when writing to it, if it doesn not already exist. |
|
Icons made by Freepik from www.flaticon.com | This example shows you a way to write to a file using PHP. See the options of what will suit your use. |
|