An introduction to friendly URLs in PHP
Sunday, June 22nd, 2008 Posted in PHP, RegEx | 6 Comments »Nice URLs, readable URLs, search-engine-friendly URLs. Different names same deal. It can't really be disagreed on that something like example.com/index.php?page=article&id=409 is not nearly as nice as example.com/article/409. Turns out this isn't all that hard with PHP - infact it can turn into ...
$_SESSION and register globals in PHP
Tuesday, January 8th, 2008 Posted in PHP | No Comments »I spent a silly amount of time getting to bottom of a bug in a php script I was maintaining. The script was using the session to store a list of service names, among other things: $_SESSION["servicename"] = array("Just", "Some", "List", "Of", "Names"); But ...
MS Word characters
Friday, October 19th, 2007 Posted in PHP | No Comments »MS Word sucks. Unfortunatly we gets all our clients thinking it's perfectly okay to copy-paste their text from Word into our carefully crafted admin areas that are supposed to let them add new content. Yeah well, Word uses a bunch of ...
PHP and Perl sharing files
Tuesday, October 9th, 2007 Posted in PHP, Perl | No Comments »I came across an interesting tid-bit today. Although not immediately obvious - Perl and PHP have so much in common syntax wise that you can write basic variable definitions in a single file and they'll be parsed by both. # PHP ...