更新时间:2023-02-20 08:46:26
By using the -r parameter you can run a script in-line.
-r
php -r "require 'address.php'; exportAddress(12345);"
There are no other options. A function in PHP can only be called by a PHP script.
从命令行调用Roslyn分析仪
从命令行停止 node.js 程序
通过命令行调用 Laravel 控制器
脚本在PyCharm中运行,但不是从命令行运行
脚本运行正常,当从命令行运行但不通过cron
执行“少”从命令行PHP w /滚动
从命令行运行脚本中的函数(Node JS)
从Windows命令行调用脚本
PHP mail()从命令行工作,但不是apache