php cli 小技巧

前端之家收集整理的这篇文章主要介绍了php cli 小技巧前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

PHP代码: <div class="codetitle"><a style="CURSOR: pointer" data="87937" class="copybut" id="copybut87937" onclick="doCopy('code87937')"> 代码如下:

<div class="codebody" id="code87937">
<?PHP
var_dump($argv);
Shell/批处理代码 <div class="codetitle"><a style="CURSOR: pointer" data="79651" class="copybut" id="copybut79651" onclick="doCopy('code79651')"> 代码如下:
<div class="codebody" id="code79651">
@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

原文链接:https://www.f2er.com/php/26499.html

猜你在找的PHP相关文章