开发者

php check chmod permissions for folder

开发者 https://www.devze.com 2023-03-04 03:16 出处:网络
Hello how can I check if a folde开发者_StackOverflow中文版r has permissions to be writable and readable via php.

Hello how can I check if a folde开发者_StackOverflow中文版r 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.


Check out is_writable och is_readable. They're tailored for exactly this.


did you try chmod() .

EDIT:Then try fileperms

0

精彩评论

暂无评论...
验证码 换一张
取 消