WHAT IS FILE HANDLING FUNCTIONS

WHAT IS FILE HANDLING FUNCTIONS

PHP file handling functions are used in different conditions in any script development. You can use them to create a simple file upload or image upload or gallery script for storing images and many more. These built in functions gives flexibility in developing complex scripts. We will discuss some of the PHP file handling functions with their detail uses and code samples.

Reading a file
We can read file in our server or external server by using fread function. We can create a
pointer to the file and read the content by specifying the size of data to be collected.