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

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

WBOY
Release: 2016-06-13 13:48:41
Original
687 people have browsed it

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

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


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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template