Ever wanted to give your users the ability to set permissions on files/folders via a web-based interface? This code sample is a complete working bit of code to do just that. Or, if you're constantly asking yourself what 777 or --w-rwx-w- means, this code sample can help you with that too.
You can interact with this in one of three ways.
- Enter an octal, like 742, in the box, top-left.
- Enter a symbolic permissions string, like --w-rwx-w-, in the box on the bottom.
- Check/uncheck any combination of the 9 checkboxes. Click column/row headings to check all checkboxes in the corresponding column/row.