Home > Backend Development > PHP Tutorial > php cli tips_PHP tutorial

php cli tips_PHP tutorial

WBOY
Release: 2016-07-21 15:09:54
Original
1062 people have browsed it

php code:

Copy code The code is as follows:

var_dump($argv) ;


Shell/batch code

Copy code The code is as follows:

@echo off
:BEGIN
set /p input=any key to run or "c" exit:
if "%input%"=="c" goto END
goto RUN

:RUN
..binphp.exe -r "echo "rnrn";"
..binphp.exe run.php %input%
..binphp.exe -r " echo "rnrn";"
goto BEGIN

:END
exit

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327212.htmlTechArticlephp code: Copy the code as follows: ?php var_dump($argv); Shell/batch code Copy the code As follows: @echo off :BEGIN set /p input=any key to run or "c" exit: if "%input%"...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template