PHP

Don’t abuse PHP’s header function for redirects

PHP’s Header function can come in quite handy when you’re building your next greate web application.  Its powerful, but as a result, its tempting to misuse it to do even the simplest things, like permanent redirects.  Usually, its done like this: // redirect /publications (this page) to real page (/documents)Header("Location: /documents/"); One line of code,

Don’t abuse PHP’s header function for redirects Read More »

CakePHP impressions

As much fun as maintaining my own psuedo framework is, and hacking away on our own framework/CMS at work, I’ve decided its time to try out CakePHP, one of the many php frameworks out there, to update a website I built three-plus years ago for my dad. I chose CakePHP for a number of reasons,

CakePHP impressions Read More »

Good mod_security overview

A good overview of the mod_security module for apache can be found at pathfinder.  Mod_security is a good application firewall that can help protect and apache server from common application level attacks (sql injection, email header injeciton, cross-site scripting) by inspecting the payload  of  requests coming to the server.  Its very useful in quickly putting

Good mod_security overview Read More »