mod_rewrite primer

I’ve had to write a number of .htaccess files over the past week or so. My uses of mod_rewrite are simple enough, but I thought to post here since there in case anybody just wants to accomplish something quickly. Ask your server administrator to set the “AllowOverride” property to “FileInfo” or “All”, so as to […]

Read More mod_rewrite primer

Programmer questions

What is the output for the following 3 code snippets? $x = 3; if (4 < $x) { print "The quick brown fox jumps over the lazy dog."; } else { print "She sells seashells on the seashore."; } $x = 1; $x = ++$x * 2; print $x; $x = 1; $x = $x++ […]

Read More Programmer questions