gpt4 book ai didi

php - 如何从 CLI 运行 php 脚本?

转载 作者:搜寻专家 更新时间:2023-10-31 21:12:59 25 4
gpt4 key购买 nike

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

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

最佳答案

您以文件位置作为参数运行 PHP 可执行文件(Windows 示例:php.exe path/to/method.php)。 php.exe 的位置取决于您安装它的位置。

Read more.

关于php - 如何从 CLI 运行 php 脚本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15113811/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com