How can I check file permissions, without having to run operating system specific command via passthru() or exec()?
file permissions
passthru()
exec()
Use fileperms() function
clearstatcache(); echo substr(sprintf('%o', fileperms('/etc/passwd')), -4);
1.4m articles
1.4m replys
5 comments
57.0k users