Please note, this is a STATIC archive of website technosmarter.com from 20 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
 

PHP: File Modes


File modes are the elements used to perform various tasks. Like – Create a file ,Open ,Read, Delete ,Append ,close .
The following description of all modes .


Modes       Description

r               For open a file to read only .File pointer will start at the beginning of file .

w              For Open a file to write only. File pointer will start at the beginning of file .

x               For creates a new file for write only.

r+             For Open a file for read/write. File pointer will start at the beginning of file .

w+            For Open a file for read/write.. File pointer will start at the beginning of file .

a+             For Open a file for read/write File pointer will start at the end of file .It Creates a new file if the file doesn't exist.

x+             Creates a new file for read/write.It Returns FALSE and an error if file already exists.(Your file does not exist)


Please Share

Recommended Posts:-