Archive for September, 2007

PHP Lightweight device-detection

With the blaze of the iPhone and other similarly enabled "web" phones, companies such as Bank of America, ABC News, Flickr and Orbitz.com have made an extra effort to make their exceptional websites available across these smaller platforms.

Activating PHP5 in Godaddy Hosting

This is a quick and simple rewrite used to activate php5 and rename the handlers for php4. The following code will need to be in the root dir .htaccess file for global changes.

 

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

# switch GoDaddy's php extension handling for php5
AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4

Prototype and Script.aculo.us Effect Collection

Let’s build a collection of really cool effects/websites created with the Prototype.js and Script.aculo.us. I’ll start off with a couple from a friend and encourage you to help me and comment some of your examples!

Quick way to getElementsByClass in HTML DOM

In this example I'll find all the elements with the class name "hideMe" and then hide/show them.