$year = date('Y', time());
$day = str_pad(date('z',time()),3,'0',STR_PAD_LEFT);
echo $year.$day;