I'm trying to take the mode of stat($filename)[2] and convert it to "normal" Unix file permissions.
Something like:
$mode = stat($filename)[2]; $unixmode = $mode ?some magic here?
Right now I can only print it (as per the example). Any help would be greatly appreciated.
Thanks,
Harry
In reply to converting stat() $mode to unix file permissions by hhoffman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |