php代碼:
復制代碼 代碼如下:
<?php
var_dump($argv);
Shell/批處理代碼
復制代碼 代碼如下:
@echo off
:BEGIN
set /p input=any key to run or "c" exit:
if "%input%"=="c" goto END
goto RUN
:RUN
..\bin\php.exe -r "echo \"\r\n\r\n\";"
..\bin\php.exe run.php %input%
..\bin\php.exe -r "echo \"\r\n\r\n\";"
goto BEGIN
:END
exit