Home  >  Article  >  Backend Development  >  windows命令行cmd停运行php的实现

windows命令行cmd停运行php的实现

WBOY
WBOYOriginal
2016-06-13 10:29:511847browse

windows命令行cmd下运行php的实现

在windows的cmd下,可以通过php.exe来执行php文件,然后将这个命令写入到bat里来定时执行,大概比浏览器定时刷新什么的要可靠多了.代码如下:

php.exe所在路径 待执行php文件路径

即可.

如:

D:\website\APMServ5.2.0\PHP\php.exe D:\website\APMServ5.2.0\www\htdocs\phpinfo.php

?

保存为bat文件,即可利用windows的计划任务定时执行.

有关cmd下php.exe的运行,可以随时使用 -h 参数来查看.感谢 小桔灯分类信息网 http://www.xiaojudeng.com原创供稿.

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
Previous article:关于php上传资料Next article:装配thinkphp