Home  >  Article  >  Backend Development  >  在windows里如何设置“计划任务”,定时执行php文件

在windows里如何设置“计划任务”,定时执行php文件

WBOY
WBOYOriginal
2016-06-13 10:08:04957browse

在windows里怎么设置“计划任务”,定时执行php文件?
如题,从网上找了几个方法都不行,请大家指点下。

------解决方案--------------------
批处理文件中
php -f phpfile.php


------解决方案--------------------
在计划中将php.exe文件路径弄上去,后面跟php文件

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn