In this chapter we will teach you how to create and write to a file on the server.
PHP Create File – fopen()
The fopen()
function is also used to create a file. Maybe a little confusing, but in PHP, a file is created using the same function used to open files.
If you use fopen()
on a file that does not exist, it will create it, given that the file is opened for writing (w) or appending (a). Continue reading PHP File Create/Write