Full-Demon Posted August 21, 2007 Share Posted August 21, 2007 Hi, I know how to set the CHMOD for a file, but does a function exsists where I can see a file's CHMOD settings? Thanks, FD Link to comment https://forums.phpfreaks.com/topic/66027-php-checking-chmod-settings-of-a-certain-filedirectory/ Share on other sites More sharing options...
trq Posted August 21, 2007 Share Posted August 21, 2007 In php? Try... <?php echo substr(sprintf('%o', fileperms('/path/to/file')), -4); ?> Link to comment https://forums.phpfreaks.com/topic/66027-php-checking-chmod-settings-of-a-certain-filedirectory/#findComment-330362 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.