且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在计划任务中运行PHP文件(Windows Task Scheduler)

更新时间:2023-02-17 21:22:07

运行命令应为


C:\Path\to\php.exe -f "C:\Path\to\file.php"

从php.exe的命令行帮助中:

From the command line help of php.exe:


-f         Parse and execute <file>.