很简单,特别方便php做一些cli应用的调试和PHP模版
源于:http://www.huiyi8.com/php/
1. [代码][PHP]代码
<?php
var_dump($argv);
2. [代码][Shell/批处理]代码
@echo off
:BEGIN
set /p input=any key to run or "c" exit:
if "%input%"=="c" goto END
goto RUN
:RUN
..inphp.exe -r "echo " ";"
..inphp.exe run.php %input%
..inphp.exe -r "echo " ";"
goto BEGIN
:END
exit