3

我将方法存储在Z:\work\project\apps\controllers\_cron\tools\method

如何使用命令行调用“方法”?

4

2 回答 2

1

简单如

C:\path\to\php.exe -f "Z:\path\to\file.php"

资料来源: 谷歌中“从命令行窗口运行 php”的#1 结果

于 2013-02-27T13:58:25.453 回答
1

You run the PHP executable with the location of the file as an argument (Windows example: php.exe path/to/method.php). The location of php.exe depends on where you installed it.

Read more.

于 2013-02-27T13:56:13.967 回答