Everything on your hard drive is stored as a file. There are ordinary program files, data files, files that are directories, and special files that help the hard drive keep track of the contents of …
Read More »File handling in PHP
Opening a File with fopen() in PHP
If you want to work with a file from within the PHP script, then you first need to open the file. So when you open a file, you create a file handle. A file handle …
Read More »Reading and Writing to Files in PHP
Here, you will learn how to read and write data in a file. There are various functions described here. Function Descriptions fread() This function is used to Read a string of characters from a file. …
Read More »Working with File Permissions in PHP
File system permissions determine what different users can do with each file and directory in the file system. For example, whereas one user might have permission to read and write to a file, another user …
Read More »