As unix timestamp starts at 1970, it will not calc ages over 32
function age($d,$m,$y) {
$ydiff = 1970 - $y;
$bd = mktime(0,0,0,$m,$d,1970);
return $ydiff + date("Y") - date("Y",$bd);
}
echo age(13,12,1985)."<br>"; // = 17
echo age(22,1,1949)."<br>"; // = 53