<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1024040" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1024040</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-using-bitwise-operators#comment-1147521</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;Chroder wrote:&lt;/strong&gt; If anyone could give me a link or just explain it a little, that would be great &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I don&#039;t have many resources, so I often give examples.&lt;/p&gt;
&lt;p&gt;I think you&#039;ve already figured out what you were looking for.  I gave the second example to show another application of bitfields.&lt;/p&gt;
&lt;p&gt;The _DBG_ constants are bit offsets, rather than bit values.  This was necessary as I needed to iterate through the debug array somewhere else in the project.  I assigned the bitwise opperations into a boolean array because these values were used frequently.  And it was better to waste memory on another boolean variable than to re-perform the bitwise operation everytime the permission/setting needed to be checked. (plus, it&#039;s hard to explain to users how to setup the config file with bitfields)&lt;/p&gt;
&lt;p&gt;Just something else to consider when using bitfields.&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Mar 2004 22:18:35 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1147521 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-using-bitwise-operators#comment-1147512</link>
    <description> &lt;p&gt;Thanks, but I don&#039;t understand why your showing me these examples...&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Mar 2004 19:11:17 +0000</pubDate>
 <dc:creator>Chroder</dc:creator>
 <guid isPermaLink="false">comment 1147512 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-using-bitwise-operators#comment-1147501</link>
    <description> &lt;p&gt;PHP is not (and I don&#039;t believe ever will be) an Object Oriented Programming Language (OOPL).  Just because a language allows you to define classes and create objects doesn&#039;t mean the langauge is an OOPL.&lt;/p&gt;
&lt;p&gt;Java is a good example of an OOPL.  Heck, just to perform math opperations, you need to utilize the Math object methods:&lt;br /&gt;
Math.pow(base, power)&lt;/p&gt;
&lt;p&gt;The example I gave earlier was terrible.  I&#039;m going through a change in careers and I&#039;m waking up 5 hours earlier than I&#039;m used to.  I feel like I have jet lag.&lt;/p&gt;
&lt;p&gt;Here&#039;s another snippet from another project.  The purpose of this code is to allow the script to function with a failed DB connection.  The $cfg array has options which are set in a config file.  After a successfull DB connection, the DB is queried for the latest settings and these lines update the $cfg array.&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$cfg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;debug&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;email&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&amp;nbsp;&amp;nbsp;&amp;nbsp; = ((&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$qry&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;debugmode&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] &amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;pow&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;_DBG_EMAIL&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) ? &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;true &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cfg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;debug&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;quiet&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&amp;nbsp;&amp;nbsp;&amp;nbsp; = ((&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$qry&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;debugmode&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] &amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;pow&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;_DBG_QUIET&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) ? &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;true &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cfg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;debug&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;loud&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ((&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$qry&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;debugmode&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] &amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;pow&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;_DBG_LOUD&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) ? &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;true &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cfg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;debug&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;logdb&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&amp;nbsp;&amp;nbsp;&amp;nbsp; = ((&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$qry&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;debugmode&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] &amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;pow&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;_DBG_LOGDB&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) ? &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;true &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cfg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;debug&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;logfile&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&amp;nbsp; = ((&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$qry&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;debugmode&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] &amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;pow&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;_DBG_LOGFILE&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) ? &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;true &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cfg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;debug&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;query&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&amp;nbsp;&amp;nbsp;&amp;nbsp; = ((&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$qry&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;debugmode&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] &amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;pow&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;_DBG_QUERY&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) ? &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;true &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Mar 2004 07:25:17 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1147501 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-using-bitwise-operators#comment-1147485</link>
    <description> &lt;p&gt;I just found it weird that you&#039;re comparing a programming technique to PHP&#039;s OOP development, &#039;tis all &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Now that mySQL&#039;s license has be changed, I don&#039;t really care about SQLite. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Either way, once PHP5 is out of the RC&#039;s I&#039;ll be buying a nice O&#039;Reilly book on it &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Mar 2004 01:45:05 +0000</pubDate>
 <dc:creator>Chroder</dc:creator>
 <guid isPermaLink="false">comment 1147485 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-using-bitwise-operators#comment-1147484</link>
    <description> &lt;p&gt;No, you don&#039;t get it lol. PHP5 is developing into more of an OO type of language (IMO). I&#039;m saying if PHP5 really isn&#039;t focusing on &#039;updating&#039; those focuses then I&#039;m not really going to take time to go into the deeply. Such as  XML support, it&#039;s been completely redone. Therefore I&#039;m taking the proper time to learn the changes to become fully adapted to it. Oh, and who can forget  SQLite?&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Mar 2004 01:40:35 +0000</pubDate>
 <dc:creator>Andrew16</dc:creator>
 <guid isPermaLink="false">comment 1147484 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-using-bitwise-operators#comment-1147483</link>
    <description> &lt;p&gt;I don&#039;t get it... PHP5 doesn&#039;t &quot;rely&quot; on anything =/ You can turn just about anything into an object, permission systems or not.&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Mar 2004 01:34:08 +0000</pubDate>
 <dc:creator>Chroder</dc:creator>
 <guid isPermaLink="false">comment 1147483 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-using-bitwise-operators#comment-1147480</link>
    <description> &lt;p&gt;If PHP5 really doesn&#039;t rely on it then I probably won&#039;t work it that much. I am really concentrating on trying to work around OO coding. (*Although xBB is probably the farthest thing from, but that&#039;s how they wanted it.*) &lt;/p&gt;
&lt;p&gt;I&#039;ve been working on a PHP5 strict discussion board system. A guy by the name of 0zone is developing his version of smartBB (new PHP5) and it&#039;s pretty clean and uses OOP a lot. I&#039;ve been learning a lot off of that.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;public function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;__construct &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# Work out the load time:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;time_start &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;gettimeofday&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;time &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;time&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;# Set error handeling:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;ini_set&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;error_reporting&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;E_ALL&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;#set_error_handler(array($this, &#039;error_report&#039;));&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;^^ Just a pretty looking example.&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Mar 2004 01:17:31 +0000</pubDate>
 <dc:creator>Andrew16</dc:creator>
 <guid isPermaLink="false">comment 1147480 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-using-bitwise-operators#comment-1147476</link>
    <description> &lt;p&gt;There&#039;s not going to be anything new added to the way PHP handles the bitwise operators, so I doubt PHP5 and OOP will have a great effect on this type of permission scheme. I first got the idea from vB3, it seems to be working great there &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Mar 2004 01:09:22 +0000</pubDate>
 <dc:creator>Chroder</dc:creator>
 <guid isPermaLink="false">comment 1147476 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-using-bitwise-operators#comment-1147474</link>
    <description> &lt;p&gt;That does make sense, though. I may or may not check it out. I&#039;ve been orthodically making my own coding religion (Possible?) and holding tight to it. I&#039;ll look at what you said up there some more and consider looking it to it. I&#039;m not really sure, but do you know how much that will come into play with PHP5 and the better OO format?&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Mar 2004 01:06:25 +0000</pubDate>
 <dc:creator>Andrew16</dc:creator>
 <guid isPermaLink="false">comment 1147474 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-using-bitwise-operators#comment-1147472</link>
    <description> &lt;p&gt;You could do that, but your creating extra columns to work with. Say you had 15 different permissions, creating a new column for each permission will create 15 more bytes per user (as well as looking ugly in phpMyAdmin &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;). Now you combine the permissions into one 4 byte INT() column, you&#039;ve saved yourself 11 bytes per user.&lt;/p&gt;
&lt;p&gt;I&#039;ve been doing it the way you&#039;re saying for a while now, I&#039;ve just decided to test out this &quot;new way&quot; and see how it works &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt; It&#039;s neat &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/nerdy.png&quot; title=&quot;Cool&quot; alt=&quot;Cool&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Mar 2004 01:02:50 +0000</pubDate>
 <dc:creator>Chroder</dc:creator>
 <guid isPermaLink="false">comment 1147472 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
