Blog

Mistyped URL? Duplicate content? .htaccess and mod_rewrite to the rescue

by

It’s been a while since I’ve posted, so I thought I’d jot down a couple of ways Apache and mod_rewrite can save your life. Not literally of course, unless your website’s been linked to your life-support system by a crazed psychopath – but it should make your readers’ lives easier. Isn’t that what we’re supposed to be doing here?

Continue reading →

Posted in Apache | Tagged , , , , | 5 Comments

On the Importance of a Coding Standard

by

mail() fail

I was recently called upon to troubleshoot the mail script powering a website’s contact form, which for some reason unbeknownst to anyone was failing silently. It should’ve been an easy fix, but the more I dug into it, the more confused I became, and resorted to dumping variables to see if I could figure out what exactly was going wrong. The server was setup properly – I whipped up a quick test script, and it had no problems sending. Nothing was obviously wrong with the script itself… or so I thought.

Continue reading →

Posted in PHP | Tagged , , , , , | Leave a comment