Reputation: 1271
Hello how can I check if a folder has permissions to be writable and readable via php.
I want to check for permissions for include and file_get/put_contents, too.
I'm creating test code to check for permissions.
Upvotes: 4
Views: 14328
Reputation: 91983
Check out is_writable och is_readable. They're tailored for exactly this.
Upvotes: 10