Revenue Source

Welcome to the Revenue Source affiliate marketing forums.

You are viewing our internet marketing and SEO forums as a guest which gives you limited access to most of our discussions.  By joining our free community, you will have access to post affiliate marketing topics, communicate privately with other members (PM), exchange SEO strategies, and access many other special features.  Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems, please don't hesitate to contact us.

Go Back   Revenue Source > Site Design & Development > Programming Help
Reload this Page PHPBuilder.com: BitMasks: Emulate Unix Permissions in PHP (Quickly)
Tags: , , , , , ,

Reply
 
LinkBack Thread Tools Search this Thread
Old
  (#1 (permalink))
Affiliate Blogs is Offline
Revenue Source Veteran
Affiliate Blogs has a brilliant future here!
 
Affiliate Blogs's Avatar
 
Join Date: Oct 2005
Posts: 9,224
Jack of All Trades
CyberSpace United States
   
PHPBuilder.com: BitMasks: Emulate Unix Permissions in PHP (Quickly) - 11-28-2006

Permissions in Unix-based systems have become one of the standard models for development all over the world. They're simple to learn and use while being extremely powerful at the same time. In this new article (as contributed by Eric Potvin) from PHPBuilder.com today, they bring this power to the realm of PHP with bitmasks.
Bitmasking is a very useful method to emulate Unix-style file permissions (read/write/execute for example). What's nice about a PHP implementation is that you can configure your own bitmasks and use them for any kind of permissions in your scripts and applications. The implementation is relatively simple as well.
They start by defining a few of the permission levels (add/delete/denied) in PHP constants before showing the bitMask() function you can use to check a user's permissions. They also include some simple pseudo-code to show how it's used. For more information, check out the complete article here.


PHPBuilder.com: BitMasks: Emulate Unix Permissions in PHP (Quickly) - Read More...
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: PHPBuilder.com: BitMasks: Emulate Unix Permissions in PHP (Quickly)
Thread Thread Starter Forum Replies Last Post
PHPBuilder.com: Pro PHP Security / Preventing SQL Injection Affiliate Blogs Programming Help 0 11-28-2006 05:08 AM
PHPBuilder.com: PEAR's HTML_QuickForm Affiliate Blogs Programming Help 0 11-28-2006 05:08 AM
PHPBuilder.com: Using XML - A PHP Developer's Primer (Part 4) - XML-RPC, PHP and Jav Affiliate Blogs Programming Help 0 11-28-2006 12:39 AM
PHPBuilder.com: Using XML - A PHP Developer's Primer (Part 3) Affiliate Blogs Programming Help 0 11-28-2006 12:39 AM
How to quickly build highly profitable lists - Associate Programs Affiliate Blogs Affiliate Marketing 0 11-06-2006 04:08 AM



© 2004-6 RevenueSource.com.  All rights reserved.  Do not duplicate or redistribute in any form.
This website and its logos/design are property of RevenueSource.com.  All rights reserved. vBSEO 3.2.0 RC7


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34