What are the types of file permissions for PHP? What are the methods for file permissions when executing files under Linux under PHP? In this article, I will share with you the method of file permissions when PHP executes under Linxu.
I. File
Linux file type and vice file name
Always emphasize a concept, that is: Any device under Linux are files, not only that, even the interface of data communication has a proprietary file in charge ~ So, you will? solution, Linux file type is really a
I. Linux file attributes and permissions1. File/Directory Properties view(1) File Properties view[[email protected] ~]# ls-l file-Rw-r--r--. 1 root root 0 November 23:55 fileType file permissions Connection number file owner file All group size last
One: Users and Groups1 file Owner (user): is the owner of this file, has permissions to the file2 Group: Users within their group have access to files3 Others (Other):4 Linux user identities and group recorded filesBy default, information about
PHP Learning Basics-File System (i) file processing, file permissions
First, the PHP system file processing
/* PHP File System processing * All file processing is done using system functions. * is based on LINUX/UNIX system for Model * * File
There are three ways to control running permissions in a Lnamp environment.
First, only cancel the run permissions of the specified directory (such as the upload directory)
This way, can only say that there is better than nothing.
The second,
First, the PHP system file processing
/* PHP File System processing * All file processing is done using system functions. * is based on LINUX/UNIX system for Model * * File system processing function: * 1. All projects are inseparable from file
Grammar
chmod (file,mode) parameter description
File required. Specifies the documents to be inspected.
mode is optional. Specify the new permissions.
The mode parameter consists of 4 numbers:
The first number is always 0.
The second number
Many friends in the process of working with PHP often encounter permissions issues. I'm here on the issue of permissions based on my previous experience and talk to you. Permissions errors typically occur when the data is read and stored. So, first
Secure PHP Security Configuration
Date Created: 2001-11-12 update: 2003-08-06
Article Properties: Original
Article Source: http://www.xfocus.net
Article submission: san (san_at_xfocus.org)
Finishing: San
Version: 0.02
Date Created:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.