In windows, in order to protect the file from being modified, its properties can be set to read-only.
What is read-only?
Readonly (readonly), also known as read-only, means that the document or attribute can only be read, and cannot be modified or stored. Some important files will be set to read-only status to avoid accidentally modifying the content of these documents. Unless the read-only status is lifted, these documents cannot be modified (a window will pop up to let you save as when saving).
Methods to add read-only attributes to files:
1. Set the file to read-only by modifying the file permissions. Most system files have read-only permissions;
2. Set the file read-only by modifying the file attributes (can only be applied to files).
The above is the detailed content of In Windows, in order to protect a file from being modified, how can you set its properties?. For more information, please follow other related articles on the PHP Chinese website!