I have a file that I need to find the permissions and file type for. However, I have a small problem with it. I do not see the permissions or type, just numbers. Here is the code:
$fileMode = (stat $dirItem)[2];
Here is a sample number I get back from a file: 33279
How do I convert the numbers into type and permissions? I am using Windows NT.
Thanks for any help
In reply to using stat by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |