On a linux server, php uses file_get_contents to read files on the linux server and returns flase.

Source: Internet
Author: User
Php reads files from the server using file_get_contents on the linux server. flase php reads files from the server using file_get_contents on the linux server. flase is returned.

Reply content:

On the linux server, php uses file_get_contents to read files on the server and returns flase.

File_get_contents is an open read close process.

Check whether the target file has the permission to be read by other groups or members.

777. the first 7 represents the permissions of the object owner, the second 7 represents the permissions of the object owner's group, and the third 7 represents the permissions of other users, 7 = 4 + 2 + 1. in linux, permissions can be described by numbers. The statement is as follows:

4. set the user ID during execution to authorize the process based on the file owner, instead of the user who creates the process.
2. set the user group ID during execution to authorize the process based on the file group, instead of the user who creates the process.
1. set the adhesion position.

Path error

Check whether the file path is correct and whether you have the permission to read the file.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.