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

WBOY
Release: 2016-06-13 13:22:53
Original
1157 people have browsed it

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

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

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

即可.

如:

D:\website\APMServ5.2.0\PHP\php.exe D:\w
ebsite\APMServ5.2.0\www\htdocs\phpinfo.php
Copy after login

?

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

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

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