|
|
|
|
|
|
| |
If you are not cyrstal clear about what permissions are or if you simply don't know how to use them, then John has produced the article for you. John will discuss permissions on the Unix platform and how you can embed permission commands from within a PHP application.
In the past few columns written on www.onlamp.com, I have been discussing using PHP's file I/O capabilities for manipulating both files and directories. This week, we'll take a slight detour from a strictly PHP-related subject and discuss file permissions in Unix systems. If you are using PHP in a Windows environment (or other environment without a permission system), this column may not apply to you.
How Permissions Work
Before we can explain how permissions can be used from within PHP applications, you'll need a little background on how permissions work in general. Although today's column only discusses Unix permission-related commands, these commands directly relate to their PHP counterparts discussed in my next column. If you haven't ever really worked with the permissions system in PHP (or need a refresher) read on.
In a Unix environment, all files and directories are owned by two different entities -- a user and a group. (A group represents multiple individual users.) Likewise, each file in the file system has three different permission sets which determine who can access a particular file or directory. Specifically, every file in a Unix system has the following permission sets: user-level, group-level, and global-level.
Read More... |
|
| |
| Creating a Secure PHP Login Script Categories : PHP, Security | | | PHP5: Designing And Using Interfaces Categories : PHP, Object Oriented, Interfaces, PHP Classes, Security | | | Protecting PHP Scripts with HTTP Authorization Categories : PHP, HTTP, Security, Authentication | | | Writing A Port Scanner In PHP Categories : PHP, HTTP, Security | | | Exploring Session Security In PHP Web Applications Categories : PHP, Security, Sessions, Web Applications | | | User Authentication With patUser (part 2) Categories : PHP, Authentication, Security | | | Developing a Security Policy, by Anna Johnson Categories : Other, Security, Site Planning | | | Generating One-Time URLs with PHP Categories : PHP, URLs | | | 10 PHP Functions I Bet You Didn't Know About! Categories : PHP, PHP Functions, Filesystem, Arrays, Errors and Logging | | | Date Arithmetic With MySQL Categories : PHP, Databases, MySQL, Date Time | | | Using the .NET Assembly in PHP Categories : PHP, .NET | | | Aspect-Oriented Programming and PHP Categories : PHP, Aspect Oriented Programming | | | Saving Images in MySQL Categories : MySQL, PHP, Graphics, Databases | | | PHP References Explained Categories : PHP References, PHP | | | Beginners guide to PHP and MySQL Categories : PHP, Beginner Guides, Databases, MySQL, Installation | |
| |
|
|