Worth your while if you're interested in PHP development. First part in the novice series:
If you want to learn the basics of PHP, then you've come to the right place. The goal of this series is to teach you everything you need to know about PHP so that you can:
At Magicode.org I've written short how to for configuring Apache with wildcard domains.
Setting up wildcard domains with Apache is easy peasy. Step one is configuring the A Record for your domain. Step two is configuring httpd.conf to accept wildcard via ServerAlias. Step three, and this is the tricky part, is setting up Apache's RewriteEngine syntax. At Magicode.org, you get the whole working setup.
Using bitwise operators are faster than modulus operators, right? Apparently this is not the case with PHP.
At Magicode.org, I've taken a hard look at whether using a ternary operator is faster than using modulus. I entered into this thinking the answer was obvious, the bitwise operator would win, hands down. Turns out, it ain't so.
Running several loops in varying steps, the most intensive being a consecutive loop from 0 to 1000000 (million) showed that $i%2 was significantly faster than $i&1==0, being about 9% faster in most tests. The results and the script used to verify the results are available at magicode.org.
So, there you go folks, modulus wins.
Failure is more frequently from want of energy than want of capital.