I am running a php project from xampp ,it is running with out any error.When I am trying to run the same project from server it is throwing an error Call to undefined function cal_days_in_month()
.Is there any permissions that I have to give from server side?
Try
date('t', mktime(0, 0, 0, $month, 1, $year));
And I found in internet that it requires PHP to compile with calendar support:
recompile PHP with the "--enable-calendar" option
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With