January 20, 2010

Use class with semantics in mind

“Use class with semantics in mind.”

via Use class with semantics in mind – Quality Web Tips.

January 15, 2010

PHP on OS X 10.6 Snow Leopard throwing errors

Snow Leopard now uses PHP 5.3, so there are new rules in the playing field. You can fix them by adding

date.timezone = "America/Anchorage";

in your php.ini file, or if you don’t have access to that, you can add this to your own project:

date_default_timezone_set('America/Chicago');

Use whatever timezone is appropriate for you, of course. The list is here: http://us3.php.net/manual/en/timezones.php

July 27, 2009

Detecting a Mobile Phone & Redirecting in PHP

A nice article on that process here:
http://mobiforge.com/developing/story/lightweight-device-detection-php

May 28, 2009

Plesk 8.6 Installation Error on RHEL 5.3

I got the following error when trying to install Plesk on a fresh installation of Red Hat Enterprise v5.3:

ERROR: Unable to install the "psa-8.6.0-rhel5.build86080722.01.i586" package.

The following could cause the installation failure:
Packages "bind-libs-30:9.3.4-6.P1.el5.i386" and "bind-libs-30:9.3.4-10.P1.el5.i386" cannot be installed at the same time
because of the conflict on the file "/usr/lib/libbind.so.4"

So I ran

yum erase *libbind*

and boom, it started installing.

February 24, 2009

Official Safari 4 Beta from Apple

Run on over to Apple and get the über-cool new browser, with all the awesome WebKit features to date.