Run Cron Job on PHP Script, on localhost in Windows

前端 未结 4 1207
情书的邮戳
情书的邮戳 2020-11-29 00:32

I have a php script and want to run it on an schedule. I am using local web server on windows (WAMP server) and need a way to run my_script.php every 10

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 01:22

    Little bit late but just for someone who don't want it to be lengthy and don't want to waste time in testing (as the aim is to host it to server), can do one thing by adding http content refresh in the html meta tag of that php file and add the required timer to it and run it in the browser. NOTE: You have to make the system remain open untill you don't get the required output. Again I am saying this is not the perfect and proper way but ya can save someone's configuration setting time.

提交回复
热议问题