Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get chmod of directory php

echo substr(sprintf('%o', fileperms('/path/to/directory')), -4);
// prints something like 1777
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #chmod #directory #php
ADD COMMENT
Topic
Name
5+4 =