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

在windows里怎么设置“计划任务”,定时执行php文件?

WBOY
Release: 2016-06-23 14:21:21
Original
901 people have browsed it

如题,从网上找了几个方法都不行,请大家指点下。


回复讨论(解决方案)

批处理文件中
php -f phpfile.php

批处理文件中
php -f phpfile.php
恩,谢谢,用批处理的同时还要设置下组策略,通过下面的两个帖子,终于设置成功了:
http://www.jb51.net/article/29134.htm
http://zhidao.baidu.com/question/74808331.html

路过。。帮感谢。。。

在计划中将php.exe文件路径弄上去,后面跟php文件

都设置了 但是php文件执行不了怎么办?

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