I know it is easy to see file permissions in php, but I can’t find search reference for directory permissions.
Is is possible to display the folder permission and ownership with php?
If anyone can answer please also provide the example code.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
PHP’s fileperms function also works with directories, as you can see in Example #2.
Use fileowner to get the ID of the user who owns the file/directory.