Quantcast
Channel: CRON job to run on the last day of the month - Stack Overflow
Viewing all articles
Browse latest Browse all 23

Answer by Puran Kaurav for CRON job to run on the last day of the month

$
0
0

Use the below code to run cron on the last day of the month in PHP

$commands = '30 23 '.date('t').''.date('n').' *';

Viewing all articles
Browse latest Browse all 23

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>