I am using PHP and MySQL running in windows7. I need to run a php script at the scheduled time daily to send sms for birthday wishes.
Asked
Active
Viewed 1,063 times
-1
-
1windows has a task scheduler, use that – Jun 13 '15 at 04:32
-
Does this thread help you http://stackoverflow.com/questions/24035090/run-cron-job-on-php-script-on-localhost-in-windows – Ron Piggott Jun 13 '15 at 04:35
-
More info, what server are you using? Nginx, Apache, IIS, Vanish? – marblewraith Jun 13 '15 at 04:38
-
sir , i am using an apache server – Binil Varghees Jun 13 '15 at 05:05
1 Answers
0
You can put your command in Task Scheduler, and setup the DateTime Interval you need.
To Execute PHP Script, you need to mention php path and the file to be executed, for example:
D:/xampp/php/php.exe D:/xampp/htdocs/execute.php

kamal pal
- 4,187
- 5
- 25
- 40
-
And I answered with my flexible solution this some long time ago. It is easy to customizable, add multiple urls, add multiple frequencies etc. http://stackoverflow.com/questions/14718865/run-php-script-in-background-on-apache-start-restartwindows-server/28095198#28095198 – Pilskalns Jun 15 '15 at 07:29