PHP传递命令行选项
在运行脚本时,如何使用命令行通过-d将多个选项传递给PHPPHP传递命令行选项,php,command-prompt,Php,Command Prompt,在运行脚本时,如何使用命令行通过-d将多个选项传递给PHP -d foo[=bar] Define INI entry foo with value 'bar' 例如,我想显示错误并设置内存限制 php -d display_errors=1 memory_limit=-1 index.php 无法工作并抛出错误php-dmemory\u limit=5G index.php 您可以这样运行。One option=One-d php -d display_errors=1 -d
-d foo[=bar] Define INI entry foo with value 'bar'
例如,我想显示错误并设置内存限制
php -d display_errors=1 memory_limit=-1 index.php
无法工作并抛出错误php-dmemory\u limit=5G index.php
您可以这样运行。One option=One-d
php -d display_errors=1 -d memory_limit=-1 index.php