We will be using fopen() function to open files in PHP: Look at the example below:
(click image to view)
Your file maybe opened in one of the following modes:
(click image to view)
The example below shows a message that is generated if the fopen() function is unable to open the specified file:
(click image to view)
Closing a File
To close an open file, we will use fclose() function:
(click image to view)
No comments:
Post a Comment