php

PHP Unconference Hamburg Day 1

I spent yesterday at the PHP Unconference in Hamburg. None of the sessions were in English, so that meant I really struggled with some of the sessions, while some of the others I could pick up some of it.

Between sessions I meant to meet a few people I had chatted with in IRC, but never met in meatspace. I always like to be able to put a face to a nick or blog, then have a beer or 2. This is exactly what happened last night.

I managed to land a big thick Ajax book (in English), which was pretty cool - something to read on the plane back to Australia

It is sad that phpGroupWare doesn't have the "brand recognition" it once had. Hopefully we can turn that around later this year if we get a release out.

I am skipping the morning session, and hope to catch some good sessions this afternoon.

For the record, the Norwegian company I work for isn't eZ.

PHP on crack

I had a chuckle while reading Ed Finkler's PHP6 wish list. After reading the comment by Damien Seguy I almost fell off my chair.

Try running the following code under PHP

<?php ${'[email protected]#$%^&*()[]:;"<>,./?'} = "i bet this won't work!<br>\n"; ${"omg???!!! wtf???!!! :D"} = "omg it does<br>\n"; echo ${'[email protected]#$%^&*()[]:;"<>,./?'} . ${"omg???!!! wtf???!!! :D"};

It worked here on PHP 5.2.3 with ubuntu security fixes. I got

i bet this won't work!<br>
omg it does<br>

This contradicts the PHP manual, but hey it works.

hello_world.c

$ cat hello_world.c #include <stdio.h> main() { printf ("Hello World!\n"); }
$ gcc hello_world.c -o hello_world
$ chmod +x hello_world
$ ./ hello_world
Hello World!
$

I have started playing with C recently. I am still finding it annoying, yet enjoyable at the same time. The PHP developers have spoilt me (and other PHP coders). PHP gives you most of the power of C, without having to deal with annoying string handling, easy arrays, memory management and having to build to test. I am sure there is more.

Unlike OS X, I think I will persist with C.

Other than reminding myself of how to do hello world in C, why did I post this? I thought you would never ask, it is because my blog is now syndicated on Planet Linux Australia. I am pretty honoured by being added. Hopefully there are others who appreciate my rants :)

bye bye PHP 4

I have several servers running PHP 5 already, but as my laptop is my primary phpGroupWare development and test environment, it was running PHP 4.

I knew this day would come, I just didn't think it would be so soon. PHP4 has been dropped from ubuntu. Ubuntu has never shipped php4 in main, but until feisty it has been in available in the universe.This is no more.

The advantage of using PHP 5 on ubuntu is that it is in main, so has full security support.

I started using PHP 3 and I was pretty enthusiastic about making the jump to PHP4, but have held back on PHP 5 due to the problems with running phpGroupWare (and other scripts) under it. It looks like I no longer have any excuses,

Now that all the major distros ship PHP 5 and PHP 6 is around the corner, it is time to bury PHP 4. The world didn't end when register globals was turned off by default. Switching to PHP 5 won't kill us either, but holding back may.

Really Simple CalDAV Store

Interesting PHP CalDAV implementation. Could be useful for phpGroupWare

PHP Security Guide

A must read for any PHP developer