0

I am new to php.I need a function to be call every day in background.This function reduces the value in database by 1.can any body help me out. I have searched in google.every one is saying to use cron job..can any body tell me how to use it in windows

  • 5
    In Windows you can use scheduled tasks: http://technet.microsoft.com/en-us/library/bb726974.aspx , http://stackoverflow.com/questions/4249542/windows-scheduler-to-run-a-task-every-x-minutes, http://superuser.com/questions/345319/how-to-schedule-a-windows-task-to-repeat-every-day-within-a-time-range. Hope this helps :) – IrishGeek82 Jun 11 '14 at 06:45
  • i dont want to depent on windows platform..can you tell me any php function that can help. – kaustubh badamikar Jun 11 '14 at 06:49
  • You can schedule a task in windows task scheduler to run php .php at a specific time of the day. The net result is approximately the same as running a task schedule through crontab in linux. There are no cronjobs for windows. http://stackoverflow.com/questions/132971/what-is-the-windows-version-of-cron – IrishGeek82 Jun 11 '14 at 06:51

0 Answers0