I work on our soccer teams pages and I need a way to calculate players age in years. I managed to calculate players ages that are born after Unix epoc time (1970...?) but my genious algorithm chokes with dates before that.
so I have something like:
$born = mktime(0,0,0,$month, $day, year$)
$now = time ()
$age = bcdiv (($now - $born)/31536000)
also as a feature I would appreciate a snippet that checks if a person has a birthday today. It must be something very simple I think...
And no this isn't a school project :-)
Panu