Page 1 of 1

How to run a script on specified day each month

Posted: Sat Nov 03, 2012 11:35 am
by davidgwalker
Add the code below to the top of the script which is called from phpJobScheduler. Set the job to run everyday.

Change "20" to the day you wish to run your script each month.

Code: Select all

//this will check the date is the 20th of the month then run the code
if (date("d")=="20")
 echo "put your code here to run a script on the 20th of the each month.";