運行cmd進入你php的安裝文件夾下,例如我的php安裝路徑是f:\wamp\php
c:\>f:\wamp\php\php.exe -f f:\wamp\apache\htocs\test\index.php(要執行的文件路徑)
回車即可
利用變量 $argv(所有的參數) 和 $argc(參數個數)來接收
c:\>f:\wamp\php\php.exe -f f:\wamp\apache\htocs\test\index.php(要執行的文件路徑) param1 param2 …
運行cmd進入你php的安裝文件夾下,例如我的php安裝路徑是f:\wamp\php
c:\>f:\wamp\php\php.exe -f f:\wamp\apache\htocs\test\index.php(要執行的文件路徑)
回車即可
利用變量 $argv(所有的參數) 和 $argc(參數個數)來接收
c:\>f:\wamp\php\php.exe -f f:\wamp\apache\htocs\test\index.php(要執行的文件路徑) param1 param2 …