Calculating days in current month is pretty easy in PHP. Get the current month and year and use the inbuilt cal_days_in_month to get the number of days:
$mon = date("m"); $year = date("Y"); $days_in_mon = cal_days_in_month(CAL_GREGORIAN, $mon, $year);
Advertisements