Run Cron Job on PHP Script, on localhost in Windows

前端 未结 4 1211
情书的邮戳
情书的邮戳 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:21

    If you use answer from Trix and get same problem as Metafaniel:

    I have a problem, with this procedure, the task is beinge executed, however my php script it's not running, I got the "Open with" dialogue. If I see the properties of my task, it states: ActionName C:\Windows\system32\OpenWith.exe even if I set it to the vbs file as you suggested. What am I doing wrong?

    you should use this:

    1. Instead "enter path to shellscript.vbs like C:\path\to\shellscript.vbs." use "C:\Windows\System32\wscript.exe"
    2. Instead "leave Add argumentts (optional) section empty" use (with quotes): "C:\path\to\shellscript.vbs"

提交回复
热议问题