July, 2007

DSC00375 This is the blog of Audun Larsen, a 23 year old boy from Bergen, Norway.
I currently work as a telecommunications technician in one of largest companies within telecom, Relacom. Although the guy in the picture isn't me (I was the photographer) that is what I'm supposed to do when I'm not taking pictures.

After much work on the new phpSysInfo interface, I decided to test it in IE.

Since 99% of the code is pure jQuery code (we are talking about 400 lines of JavaScript) I had no reason to believe that it would fail. But off course, it did.

Creating XML files with PHP using SimpleXML is really easy, and elegant.

To create a SimpleXML object from a string, I use the following code.

$xml = simplexml_load_string("<?xml version='1.0'?>\n<phpsysinfo></phpsysinfo>");

From there it's really easy to expand.


$xml = simplexml_load_string("<?xml version='1.0'?>\n<phpsysinfo></phpsysinfo>");
$generation = $xml->addChild('Generation');
$generation->addAttribute('version', PSI_VERSION);
$generation->addAttribute('timestamp', time());

jQuery is really amazing.
I'm actually having problems finding words to describe it's awesomeness. I'm currently working on a jQuery based XML parser, really Web 2.0ich, and wanted to make my jQuery generated tables look really pretty, with any other row with a different background color. After some googleing I stumbled upon this great article.

It's definitely worth reading.

Zebra Striping Made Easy

Today PHP.net writes:

Today it is exactly three years ago since PHP 5 has been released. In those three years it has seen many improvements over PHP 4. PHP 5 is fast, stable & production-ready and as PHP 6 is on the way, PHP 4 will be discontinued.

It was announced at drupal.org today, that Drupal 7 will be PHP 4 incompatible. This is a huge decision to take, since it will make it impossible for many to run Drupal 7.
But in my opinion it's about time.

Dropping support for PHP 4 in such a big project as Drupal is a great kick in the ass for the PHP community to upgrade to PHP 5.

PHP 5 is three years old now, and way to many is using PHP 4 that was released seven years ago.

I checked out the new Drupal 6.0 from CVS today, and I must say, allot has happened since the last time I tried it some weeks ago.

Just to, I don't know.. brag? I just wanted to tell the world that my first patch was commited to Drupal core yesterday. What a nice feeling.