很简单,特别方便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
..\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
时间: 2024-10-08 12:12:18