How to run a script on specified day each month

Post your support requests/solutions for phpJobScheduler [website]
davidgwalker
MODS thats what I do that is! But definately NO mod music! It has to be ROCK!
Posts: 1807
Joined: Mon Oct 25, 2004 8:20 pm
Location: Huddersfield, UK
Contact:

How to run a script on specified day each month

Postby davidgwalker » Sat Nov 03, 2012 11:35 am

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

<?php
//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.";
}
?>

Return to “phpJobScheduler [forum]”

Who is online

Users browsing this forum: No registered users and 1 guest