Home / Tutorials / PHP FILE MODE
file modes

PHP FILE MODE

PHP FILE MODE Comparisons

Mode Description Cursor Position File Not Exists File Exists File Creation
r Read Only Beginning Warning No
r+ Read + Write Beginning Warning No
w Write Only Beginning Create Delete & Create Empty Yes
w+ Read + Write Beginning Create Delete & Create Empty Yes
a Write Only End of File Create Append Yes
a+ Read + Write End of File Create Append Yes
x Write only Beginning Create Warning Yes
x+ Read + Write Beginning Create Warning Yes
b binary You could use the ‘b’ in all other modes.

About cmadmin

Web Developer & Designer | Android App Developer

Login


Username
Create an Account!
Password
Forgot Password? (close)

Sign Up


Username
Email
Password
Confirm Password
Want to Login? (close)

Forget Password?


Username or Email
(close)
SHARE
OR
SUBSCRIBE
To get latest new / tutorial / technology / development information subscribe with us.
ARE YOU READY? GET IT NOW!
Lets Get Updated with latest trends & tutorials!
Your Information will never be shared with any third party.
Ready for latest tutorials & tools !
OR SUBSCRIBE WITH