Skip to main content

PHP File Handling: Accessing File

In this tutorial, we’re going to access file in PHP. And primarily we’re going to focus on this lesson in dealing with  fopen (filename, mode) so we’re going to open a file and we’re to provide a filename and we’re going to tell it what mode is should open it. And remember using “fopen” opens up a file whether it exists or not so we will create it if necessary. At this time, we will know first how to deal with FILE ACCESS MODES: Below are the three basic ways to open a file and the corresponding character that PHP uses. This is used to specify the intentions when you open a file. r -

Add new comment