Running a php script with a .bat file

后端 未结 6 1519
隐瞒了意图╮
隐瞒了意图╮ 2021-01-17 20:49

I need to run a php script at midnight every night on my server. On a linux system I\'d set up a cron job, but I\'m stuck with a windows system.

I know I have to set

6条回答
  •  悲哀的现实
    2021-01-17 21:26

    Actually, you don't even need a batch-file. You can run the php-script from the task scheduler.

    Just let the task scheduler run php.exe and set the location of the php-file as the argument of the task.

提交回复
热议问题