Skip Navigation | Home | Code Samples | Articles | Links | About | Contact Me | Make a Payment


Owner Group Other

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.

  1. Enter an octal, like 742, in the box, top-left.
  2. Enter a symbolic permissions string, like --w-rwx-w-, in the box on the bottom.
  3. Check/uncheck any combination of the 9 checkboxes. Click column/row headings to check all checkboxes in the corresponding column/row.