Home >Backend Development >PHP Tutorial >cmd下运行php脚本_PHP

cmd下运行php脚本_PHP

WBOY
WBOYOriginal
2016-06-01 12:24:13840browse

其实蛮简单的
我的php安装目录在 d:\php
那么 运行
cmd
>d:
>cd php
要让工作目录指向php.exe的安装文件夹
然后就可以用php指令了
比如 在该文件夹下面新建一个test.php

>php test.php
看运行成功了吧。

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