Php check chmod permissions for folder

Hello, how can I check if a folder has permissions to write and read through php.

I want to check permissions for include and file_get / put_contents.

I am creating test code to check permissions.

+3
source share
2 answers

You tried chmod () .

EDIT: Then try fileperms

+4
source

Check out is_writable och is_readable , They are specially designed for this.

+9
source

All Articles