Finally Back on Linux in the office with Wubi

June 3, 2010

All of the Web Development office computers at Northwest Nazarene University are managed by IT and contain a Windows XP image that is parceled out over the network. I do not particularly enjoy working on a Windows machine and today I ran across the Wubi project again. It allows a user to install Ubuntu Linux

New Website Launch: Naomi Speed Skater

June 3, 2010

Naomi O’Hare is a Speed Skater on quad skate in the Nampa, Idaho area. Naomi is working on getting to the national competition and getting sponsored as a full-time skater. Naomi needed a website for fund raising information and to show off her sweet skills. Visit Site

Apache: Force HTTPS with .htaccess

June 3, 2010

When HTTPS is required and you are working with an Apache server that parses .htaccess files, here is a handy snippet of code to put in the .htaccess that will cause the server to force every page in that directory and all subdirectories to use HTTPS by sending them to the HTTPS URI if they

PHP: Function to force HTTPS

June 3, 2010

Quite often HTTPS is required for security reasons, but the question is how to force HTTPS with PHP?  Really it is quite simple. Copy the following function into your functions file and call it on top of every page that requires HTTPS to ensure it is used. function forceHttps() { $pageURL = ‘http’; if (!isset($_SERVER[“HTTPS”])

PHP: Remove empty array elements

June 3, 2010

I’ve run across a couple instances where I needed to either remove empty array elements or perform the equivalent of a trim() on PHP arrays. There are two pretty good ways to do this. The first way involves building a custom function to loop through an array and unset empty elements like so: function arrayRemoveEmpty($Array)