PHP File
PHP Delete File
In PHP, we can delete any file using unlink() function. The unlink() function accepts one argument only: file name. It is similar to UNIX C…
PHP Append File
You can append data into file by using a or a+ mode in fopen() function. Let’s see a simple example that appends data into data.txt…
PHP Write File
PHP fwrite() and fputs() functions are used to write data into file. To write data into file, you need to use w, r+, w+, x,…
PHP Open File
PHP fopen() function is used to open file or URL and returns resource. The fopen() function accepts two arguments: $filename and $mode. The $filename represents…
PHP File Handling
PHP File System allows us to create file, read file line by line, read file character by character, write file, append file, delete file and…