Archive for June, 2007

Save net radio

Wednesday, June 27th, 2007

Like a lot of people, I enjoy putting my day to music with Internet radio.

Unfortunately, some people want to impose crippling charges on webcasters, infinitely more than their hertzien cousins who have much deeper pockets.

In order to protest, to day has been proclaimed a ‘Day of Silence’ when internet radio shuts off. If you care about internet broadcasters, please show your support on http://www.savenetradio.org/.

Thank you

Php profiling tip 1

Thursday, June 21st, 2007

Someone at work pointed this out to me today, so here it is for google’s benefit…

When coding php pages you often have to manipulate strings and print them, with select pieces of data, so that the user can see them.

There are 2 different ways to do this:

$var = 'This is a variable : '.$data;

and

$var = "This is a variable : $data";

In the first case, you just concat the 2 elements together, whereas in the second case, php does the substitutions by it’s self.

The interesting part is that the first construct is over 4 times faster than the second….

More info (in French) here