At work all the women seem to stop ageing at 25 so today I had my very first “25th” birthday. I bought some candy for people at work (we do that..).

Not much special about today, though. I did get a nice water boiler for a present and some money from my grandparents. I’m either going to buy some kitchenware (pots and pans) or Duma Key by Stephen King (published on Jan 22!).

I just took part in Pizero‘s theme contest. When I was reading the post I thought, “I’ll take part if I get to be number 42.” And what do you know, the last comment was number 41. Of course I have to try my luck!

I remember thinking about something to write on my way to the train station this morning but now I can’t remember what it was.


[Edit (30 seconds later…)] Now I remember! As I was updating the site to update my age in the sidebar and on the about page, I got to thinking “can’t this be done with PHP without having to go through this HUUUUGE task [ ;) ] every year?” Well, yes it can! For example

<?php echo date(‘Y’)-year of birth; ?>

Now my site will remember how old I am even if I forget.
[Edit almost a year later] Now that I’m almost a year older (and the year has changed…) I’ve noticed that code bit is OF COURSE not enough. Now I created this little function.

function myage() {
$myage = date(‘Y’)-year of birth;
$mymonth = date(‘n’);
$myday = date(‘j’);
if ($mymonth >= month of birth && $myday >= day of birth) {
return $myage;
} else {
return $myage-1;
}
}