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

cmd下运行php脚本_PHP

WBOY
Release: 2016-06-01 12:24:13
Original
845 people have browsed it

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

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

Related labels:
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