Home  >  Article  >  Backend Development  >  Run php script under cmd_PHP tutorial

Run php script under cmd_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:48:36847browse

In fact, it is quite simple
My php installation directory is in d:php
Then run
cmd
>d:
>cd php
to make the working directory point to php.exe The installation folder
and then you can use the php command
For example, create a new test.php under the folder

>php test .php
See if it runs successfully.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/319744.htmlTechArticleIn fact, it is quite simple. My php installation directory is in d:php. Then run cmd d: cd php to make the working directory Point to the installation folder of php.exe and then use php commands. For example, in this folder...
Statement:
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